Closed thaiphan closed 2 years ago
@thaiphan thanks for the information, I've added this to our backlog to investigate / fix in a future release.
We also gladly accept pull requests if you'd like to take a stab at it. Check the contributing guide and we'll be happy to merge it in.
Do you think this is something that you can add as a patch?
@thaiphan yes this would be a part of the next major release which could be possibly around early next month.
Description
I have the following rich text field...
If I click on the internal link, I am currently redirected to
/why-choose-us
. However, the?overview=performance
bit does not seem to get added to the URL.Expected behavior
I would like for the search query parameter, i.e.
?overview=performance
, to be appended to the URL whenever I click on a rich text internal link. We're using search query params a lot to control things like which tab on the page is currently open, etc.Possible Fix
Maybe pass the value of
link.search
through torouter.push
somehow here: https://github.com/Sitecore/jss/blob/v21.0.0-canary.37/packages/sitecore-jss-nextjs/src/components/RichText.tsx#L42Your Environment