From ba143a08e1c685a460b5d814ad72378b7fc68177 Mon Sep 17 00:00:00 2001 From: bat Date: Sun, 26 Mar 2023 07:29:01 +0000 Subject: [PATCH] Fix hard coded path --- components/layout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/layout.js b/components/layout.js index bd22996..999c715 100644 --- a/components/layout.js +++ b/components/layout.js @@ -47,7 +47,10 @@ export class Layout extends HTMLElement { } get path() { - return '/hello' + return new URL( + window.location.hash.slice(1) || '/', + window.location + ).pathname } set editing(value) {