mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
use non-root path
This commit is contained in:
parent
2191ab1c6c
commit
0f8533f123
@ -151,8 +151,8 @@ function PageHeaderToolbar({
|
||||
aria-label={t`User details`}
|
||||
href={
|
||||
loggedInUser
|
||||
? `/#/users/${loggedInUser.id}/details`
|
||||
: '/#/home'
|
||||
? `#/users/${loggedInUser.id}/details`
|
||||
: '#/home'
|
||||
}
|
||||
>
|
||||
{t`User Details`}
|
||||
|
||||
@ -60,7 +60,7 @@ describe('PageHeaderToolbar', () => {
|
||||
wrapper.update();
|
||||
expect(
|
||||
wrapper.find('DropdownItem[aria-label="User details"]').prop('href')
|
||||
).toBe('/#/users/1/details');
|
||||
).toBe('#/users/1/details');
|
||||
expect(wrapper.find('DropdownItem')).toHaveLength(2);
|
||||
|
||||
const logout = wrapper.find('DropdownItem li button');
|
||||
|
||||
@ -15,7 +15,7 @@ import ErrorDetail from '../ErrorDetail';
|
||||
|
||||
async function logout() {
|
||||
await RootAPI.logout();
|
||||
window.location.replace('/#/login');
|
||||
window.location.replace('#/login');
|
||||
}
|
||||
|
||||
function ContentError({ error, children, isNotFound }) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user