diff --git a/src/runtime-showcase/utils/routing.ts b/src/runtime-showcase/utils/routing.ts index fbe3920..6ae9fda 100644 --- a/src/runtime-showcase/utils/routing.ts +++ b/src/runtime-showcase/utils/routing.ts @@ -31,7 +31,7 @@ export class PathnameRouting implements ShowcaseRouting { } getStoryPathname(location: RouterLocation) { - const result = location.pathname; + const result = location.pathname.replace(/\/$/, ''); if (this.publicPath) { return removeBasePath(this.publicPath, result);