next/link encode uri not working
Answered
Bighead carp posted this in #help-forum
Bighead carpOP
I have a link which encodes the company id to a url string so spaces should convert to %20. However they dont
Answered by Bighead carp
Ah, firefox just does a very strange thing by not showing you the %20s
15 Replies
Bighead carpOP
As you can see the url has spaces in (the spaces havent been replaced with %20)
If I console log the same thing I pass into the href, it's perfectly fine
@Bighead carp Click to see attachment
check the html element
Bighead carpOP
the html element href contains the %20's
this is so odd
/companies/1%20Point%20System%20LLC.
I think some browser just decode it
@Bighead carp Click to see attachment
this is with chrome?
Bighead carpOP
Firefox
try it on arc
Bighead carpOP
Ah, firefox just does a very strange thing by not showing you the %20s
Answer
Bighead carpOP
Thanks for the help
@Bighead carp Ah, firefox just does a very strange thing by not showing you the %20s
chrome and firefox does too
Bighead carpOP
Edge doesnt