redirect to remove trailing slash from URL

This commit is contained in:
Keith Grant 2019-05-22 13:51:27 -04:00
parent dc1bfaac3f
commit 79d8b74221

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