Use page name for making nav-bar path slug

This commit is contained in:
Alicia Sykes 2022-04-30 23:24:52 +01:00
parent 6bf0ecba34
commit a9496391cd
1 changed files with 1 additions and 1 deletions

View File

@ -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 || [];