-
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
Gatsby-link : change url query string #2074
Comments
You're using this |
Also what version of Gatsby are you on? |
Ah yes sorry, I'm using I'm using |
No this should work. Since it's not it sounds like a bug. I don't have time to look at this in the short term but if you'd like to work on a fix for the problem, you probably want to start looking here: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/find-page.js |
The error is raised here just after a call to find page gatsby/packages/gatsby/cache-dir/loader.js Line 251 in 943842a
|
Ok I'll try to look at this as soon as possible, thks for your feedback. |
I'm investigating since few hours in |
ok I found it there is a check between old component and new one, so shouldComponentUpdate in ComponentRenderer is returning false in my case
|
I tried this. Not sure there is no regression but all tests are green. What do you think ? |
Hi,
@cyrilepinat I saw your PR is merged but this issue is not closed do you still experiencing this issue like above? Thanks |
Hi, wow long time ago, I don't remember very well, but as I can see in our website we switched from query string to hash paramareter 😃 as a workaround so maybe it was not fix you're right. |
@cyrilepinat |
which gatbsy version do you use ? mine is 1.9.146 |
gatsby 1.9.214 Anyway, replaced |
I'm using "gatsby": "^1.9.221",
"gatsby-link": "^1.6.38", @cyrilepinat Oh okay, I also switched to |
I have the same problem, but just on production builds. Nothing happens when Edit: ended up I was wrong and actually |
@vinaypuppal yup! Thanks for testing & confirming it's working! :-) |
Hi In my case it is working well on local (localhost:8000) and build && serve (localhost:9000). "/resources?type=webinar" Could anyone help me for this problem? then very thanks :) |
use hash "/resources/#?type=webinar" |
Hi,
I'm using
navigateTo
to change my url search query. I want to stay on the same page, but I want to change the params in url. For example, on click, I callnavigateTo(`${location.pathname}${newSearchQuery}`);
to go from/resources
to/resources?type=webinar
.When my app is built with
gatsby build
, the url is actually updated but the page isn't rerendered and I can see in the consoleA page wasn't found for "/resources?type=webinar"
.So my question is :
Is it the good way to change a search query in the url ? If no, what's the best way to achieve that ? I didn't found anything about that in the doc.
Thks for your help.
The text was updated successfully, but these errors were encountered: