Home › Forums › JavaScript › How to replace all “../” href links with “/” › Re: How to replace all “../” href links with “/”
March 24, 2013 at 8:32 am
#129509
Pexcil
Participant
For some reason the above code is removing the last three characters off of any href that includes any kind of symbol…
For example:
“../about/” becomes “abo”
“../contact-form/” becomes “contafo”
Any clues??