Update handling for basePath to only automatically add (#13817)
As discussed, this streamlines the handling for `basePath` to not automatically strip and add the `basePath` when provided to `next/link` or `router.push/replace` and only automatically adds the `basePath` and when it is manually provided it will cause a 404 which ensures `href` still matches to the pages directory 1-to-1. This also adds additional test cases that we discussed to ensure this behavior is working as intended --- Fixes #13902
Showing
Please
register
or
sign in
to comment