mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Merge pull request #214 from keithjgrant/200-trailing-slash-routing
Redirect to remove trailing slash from URL
This commit is contained in:
@@ -57,6 +57,14 @@ export function main (render) {
|
|||||||
{({ i18n }) => (
|
{({ i18n }) => (
|
||||||
<Background>
|
<Background>
|
||||||
<Switch>
|
<Switch>
|
||||||
|
<Route
|
||||||
|
exact
|
||||||
|
strict
|
||||||
|
path="/*/"
|
||||||
|
render={({ history: { location: { pathname, search, hash } } }) => (
|
||||||
|
<Redirect to={`${pathname.slice(0, -1)}${search}${hash}`} />
|
||||||
|
)}
|
||||||
|
/>
|
||||||
<Route
|
<Route
|
||||||
path="/login"
|
path="/login"
|
||||||
render={() => (
|
render={() => (
|
||||||
|
|||||||
Reference in New Issue
Block a user