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

browser

Here are 3,412 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 browser 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 browser topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.