Fork me on GitHub
#reitit
<
2022-08-25
>
Ion Simion15:08:43

Hi everyone, how would I implement a conversion from fragment urls to .. query? urls for SEO purposes, but also be compatible with already shared urls (on landing) ?

1
Noah Bogart15:08:44

Do you have an example of such a conversion?

Noah Bogart16:08:06

oh interesting. i've never seen that transformation before

Ion Simion16:08:49

Nobody needed this before? or similar?

Noah Bogart17:08:01

i just mean that no doubt someone has needed this, but in my limited experience I haven't seen this

😄 1
Ion Simion06:08:02

Solved this by converting anchor links to SEO friendly URLs by simple replacing “#/” with either “?/” or “&/“, and then before starting reitit I catch any such URL and history.replaceState back to fragments url.

2