You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
mydearxym
changed the title
Router.push as add unnecessary "/" suffix on url in production code
Router.push add unnecessary "/" suffix on url in production mode
May 17, 2018
mydearxym
changed the title
Router.push add unnecessary "/" suffix on url in production mode
Router.push add unnecessary "/" suffix on end of url in export code
May 17, 2018
This isn't the router. When the site is exported a page like pages/about.js gets converted to about/index.html to avoid having the .html suffix in the location bar. There are several issues about this, including a PR #3283. Hopefully this is implemented, it's my only problem with using static exports.
hey there ~
when i call Router.push in dev mode, every thing works fine, and browser url looks as expected
but when i compile the site in static files use
next export
, theRouter.push
automatic add a "/" suffix in the end of the url :page/index.js
get 303 in browser
related: #1189 #619 #3876
System information
Additional context
i am using custom server route
The text was updated successfully, but these errors were encountered: