Notice that if this is too annoying for the time being, you can set the URL we redirect to after logout.
In Foreman, go to Administer > Settings, tab “Authentication”. Change the “Login delegation logout URL” option to “https://myforeman.mydomain/foreman”.
This option was meant for people who use Foreman and single-sign-on to redirect to single-sign-out, but it sounds like it could work around your problem.
Issue is still there and noone looked Ă this issue.
I found that redirection happens in the webpack javascript compiled in the /var/lib/foreman/public/bundle-.js.
Here’s the extract:
function onGetNotificationsSuccess({ data }) {
dispatch({
type: NOTIFICATIONS_GET_NOTIFICATIONS,
payload: {
notifications: data.notifications,
},
});
}
function onGetNotificationsFailed(error) {
if (error.response.status === 401) {
**window.location.replace('/users/login');**
}
}
It should include the prefix.
Since 1.20, a few other url are missing the prefix in the menu
/locations
/locations/clear
/organizations
/organizations/clear
We generally assume foreman is installed as the root url, but perhaps it would be simple enough for @ui_ux team to generate urls relative to the foreman_url settings?
Looks like a bug to me. It should be simple enough to use the foreman_url() function mentioned above (or better yet, implement something similar in react).