The Wayback Machine - https://web.archive.org/web/20200911130812/https://github.com/topics/ssg
Skip to content
#

ssg

Here are 163 public repositories matching this topic...

next.js
jleck
jleck commented Sep 8, 2020

Bug report

Describe the bug

When trailingSlashes: true is added to next.config.js, server-side generation does not include the trailing slash in the router asPath property.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Enable trailing slashes
  2. Add useRouter() to component
  3. Log asPath property

Expected beh

Improve this page

Add a description, image, and links to the ssg topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ssg topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.