Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(next/router): Prevent query delete in routing when next.config ba…
…sePath option is truthy (#40566) ## Bug - [x] Related issues linked using `fixes #number` - fixes - #38528 - #40432 - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Hi, it is my first pull request in this project. So... if you need anything more tasks, please tell me. Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
- Loading branch information
1 parent
40b2d13
commit 7556611
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test/e2e/middleware-base-path/app/pages/dynamic-routes/[routeName].js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useRouter } from 'next/router' | ||
|
||
export default function DynamicRoutes() { | ||
const { query } = useRouter() | ||
|
||
return ( | ||
<main> | ||
<h1 id="route-name">{query.routeName}</h1> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters