1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Merge pull request #214 from keithjgrant/200-trailing-slash-routing

Redirect to remove trailing slash from URL
This commit is contained in:
Keith Grant 2019-05-23 09:54:07 -04:00 committed by GitHub
commit cc2869d0c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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={() => (