question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate edge-case with `basePath` and `trailingSlash: true`:

See original GitHub issue

Something wrong going on when using basePath and trailingSlash: true: Next/Link removes trailing slash when going to “/” And in some old browsers got error (which was not in 9.4.5-canary.27)

Unhandled promise rejection,TypeError: t.entries is not a function
/_next/static/runtime/polyfills-35e39b6a0bf08dcb376c.js

Using 9.4.5-canary.34

_Originally posted by @Unsfer in https://github.com/vercel/next.js/issues/15148#issuecomment-658731907_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Unsfercommented, Jul 15, 2020

There are two different issues:

  1. Going to root “/” by Next/Link should preserve trailing slash when trailingSlash: true
  2. Some old FF have native URLSearchParams an instance of which does not have .entries (browser compatibility)
0reactions
balazsorban44commented, Jan 29, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trailing Slash - next.config.js
Configure Next.js pages to resolve with or without a trailing slash. ... module.exports = { trailingSlash: true, }. With this option set, urls...
Read more >
@esbuild/openbsd-x64 | Yarn - Package Manager
Each edge case in the code above previously incorrectly printed false when run through esbuild with --minify --target=es6 but now correctly prints true...
Read more >
When should I use a trailing slash in my URL? - Stack Overflow
It is not a question of preference. /base and /base/ have different semantics. In many cases, the difference is unimportant.
Read more >
github_data_SentiStrength-SE_results_initial.txt - GitLab
It will give a notice of undefined index '_', causing some tests to fail or not show the real error from the test...
Read more >
[ARVADOS] created: 1.1.0
2800: run_test_server only uses tests/tmp for real Python tests. ... behaviour when using, or not, a trailing slash on directory references.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found