mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
redirect to remove trailing slash from URL
This commit is contained in:
parent
dc1bfaac3f
commit
79d8b74221
@ -57,6 +57,14 @@ export function main (render) {
|
||||
{({ i18n }) => (
|
||||
<Background>
|
||||
<Switch>
|
||||
<Route
|
||||
exact
|
||||
strict
|
||||
path="/*/"
|
||||
render={({ history: { location: { pathname, search, hash } } }) => (
|
||||
<Redirect to={`${pathname.slice(0, -1)}${search}${hash}`} />
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
path="/login"
|
||||
render={() => (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user