Ask coding questions

← Back to all posts
Bug in repl, and how to fix?
[deleted]

(Cannot post on bugs board right now).
Repl's router changes // to / in url. Im making a unblocker for readthedocs.io (cuz its faster the firefox for me). So, the site has to be: example.repl.co/proxy/http://example.com. I need those 2 //'s, however, due to the bug, I cannot redirect to that site. How can I fix this?

Answered by SixBeeps (2319) [earned 5 cycles]
View Answer
Commentshotnewtop
SixBeeps (2319)

Just use a formatted query string using G instead of /

[deleted]

@SixBeeps wait how? And why G instead of /?

SixBeeps (2319)

@TaylorLiang My bad, I found a bug in my Repl Ask Client, and it turned "%47" into "G" xD

I was incorrect, though. Use %2F instead. That's the URL Encoding character for a forward slash.

[deleted]

@SixBeeps It still gives a too many redirects error when doing that. Also, what Repl Ask Client?

SixBeeps (2319)

@TaylorLiang I made a Repl Ask client for answering questions faster, but I'm keeping it restricted rn for a few reasons.
As for the error, are you encoding the entire URL or just the last part of it? (What URL is in your address bar and what URL does your server recognize?)

[deleted]

@SixBeeps Its fixed now, (he published 2.0.5 to fix the issue with replit)