Skip to content

Commit

Permalink
changed the next url to be absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
ajelinek committed Oct 20, 2023
1 parent 57ad0ec commit b47ca8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/content/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function getStoryPaths() {
let nextUrl = '/about-me'
let nextPageTitle = 'The End'
if (nextStory && index < sortedStories.length - 1) {
nextUrl = nextStory.slug.split('_')[1]
nextUrl = `/about-me/story/${ nextStory.slug.split('_')[1] }`
nextPageTitle = nextStory.data.title
}

Expand Down

0 comments on commit b47ca8f

Please sign in to comment.