Routing pathnames don't allow fragment identifier #1868
Closed
zanzlender
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Fragments can unfortunately not be rewritten by the middleware since they are not transferred to the server. What you could do however is saving your fragments in translations and use them for your section IDs as well with the routing APIs that might link to them. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, first of all I really like the new version, and I didn't have any complaints until this case.
I wanted to internationalize both my path names and fragments ids.
E.g. I have a link to;
/services#service-1
The problem is if I define my pathnames as just
services
, when passing my full url to the href of the Link compnent it says it's incorrect.If I just ignore the error, the app still works but after rewrite, my fragment is not visible.
My current workaround is to define all possible fragments as pathnames, but I think this needs improvement.
Any takes?
Beta Was this translation helpful? Give feedback.
All reactions