Replies: 3 comments 3 replies
-
Thanks - good to know. |
Beta Was this translation helpful? Give feedback.
-
For reference, another Cloudflare Rocket Loader issue was reported a while back... The solution was also disabling Rocket Loader. |
Beta Was this translation helpful? Give feedback.
-
As of the upcoming v3.1.0 release, Retype now supports Cloudflare Rocket Loader. There are no changes required in your project, other than building with Retype v3.1.0 once it is released. Even though Retype is now working well, we would still recommend disabling Cloudflare Rocket Loader within your Cloudflare admin panel. |
Beta Was this translation helpful? Give feedback.
-
Hello there.
I hope this is the right place to "report" this. I have recently setup a documentation site with retype. I then had following issue:
Upon clicking on some button to navigate to a different section in the docs, i would be redirected to the wrong page which does not exist.
After a long time of "debugging" i found out following issue:
If you use Cloudflare, the HTML that gets sent from the server to the client, gets altered by Cloudflare's Rocket Loader and hrefs can be modified.
I checked out the networks tab in my browser. The server sends the correct html but a javascript function (Rocket Loader) alters it and breaks the hrefs.
Here is a page i randomly found that proofs this. It's from another documentation software and it's on their FAQ.
https://www.helpndoc.com/documentation/html/TheHTMLhelpisbrokenwhenhostedbyC.html
So if anyone faces the same issue you have to disable the Rocket Loader in the Cloudflare settings. I just want to say this clearly, this is not an issue from retype, it's cloudflare's / rocket loader's fault
Maybe retype could add this to the FAQ or some common issues list.
Apologies if this has already been mentioned but before posting this i found 0 results in the issues or discussion threads.
Beta Was this translation helpful? Give feedback.
All reactions