From a9496391cd523fc75895f5c176d906c71c0298cd Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 30 Apr 2022 23:24:52 +0100 Subject: [PATCH] :zap: Use page name for making nav-bar path slug --- src/components/PageStrcture/Nav.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageStrcture/Nav.vue b/src/components/PageStrcture/Nav.vue index ec274967..5fde6671 100644 --- a/src/components/PageStrcture/Nav.vue +++ b/src/components/PageStrcture/Nav.vue @@ -46,7 +46,7 @@ export default { /* Get links to sub-pages, and combine with nav-links */ allLinks() { const subPages = this.$store.getters.pages.map((subPage) => ({ - path: makePageSlug(subPage.path, 'home'), + path: makePageSlug(subPage.name, 'home'), title: subPage.name, })); const navLinks = this.links || [];