diff --git a/worker.js b/worker.js index b26a381..4fa53a0 100644 --- a/worker.js +++ b/worker.js @@ -219,7 +219,7 @@ class BodyRewriter { PAGE_TO_SLUG[page] = slug; }); function getPage() { - return location.pathname.slice(-32); + return location.pathname.slice(1); } function getSlug() { return location.pathname.slice(1);