-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paths not prefixed when using Redirect or navigate #8155
Comments
@KyleAMathews looks like this may be a regression of #1533 caused by the switch to Reach Router? |
Maybe we are just supposed to use |
Which navigate function are you using? |
We'd have to wrap the Redirect component to add prefixing support. Maybe? Perhaps worth doing. |
I am using |
@chasemccoy I am pretty sure those functions won't work if you are importing directly from the I just confirmed that
|
…sbyjs#8289) * fix: prefix navigate calls with pathPrefix Fixes gatsbyjs#8155 * test: fix unit tests and add a few new ones * e2e: update integration tests * test: standardize on trailing slash * fix: ensure parsePath still works the way it used to with path * style: run eslint * fix: use waitForRouteChange API
It seems like there are two ways of using Method 1:
|
any workaround ? |
same error
|
Description
When using the
Redirect
component or thenavigate
function of Reach Router, the paths are not prefixed.Environment
The text was updated successfully, but these errors were encountered: