next-use-contextual-routing
next-use-contextual-routing copied to clipboard
Support without manually adding the query params in both 'as' and 'href' attributes.
What kind of change does this PR introduce?
It add support without manually adding the query params in both 'as' and 'href' attributes.
What is the current behaviour?
When making a contextual href, You'll need to pass some query params in href with relation to the as attribute.
What is the new behaviour?
No need for the double work anymore, Everything is handled within.
Does this PR introduce a breaking change?
Yes, You need to pass only a single url to enable the contextual routing
Other information:
Please check if the PR fulfills these requirements:
- [ ] Tests for the changes have been added
- [ ] Docs have been added / updated