diff --git a/components/layout.js b/components/layout.js index 27c71f0..955fd7f 100644 --- a/components/layout.js +++ b/components/layout.js @@ -45,7 +45,10 @@ export class Layout extends HTMLElement { } get path() { - return '/hello' + return new URL( + window.location.hash.slice(1) || '/', + window.location + ).pathname } set editing(value) {