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