From 96458e04b3fb163b05e4e169955eb7190f463ee5 Mon Sep 17 00:00:00 2001 From: krutoo Date: Tue, 30 Sep 2025 00:56:38 +0500 Subject: [PATCH] fix: PathnameRouting now strips ending slash --- src/runtime-showcase/utils/routing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);