Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to replace all “../” href links with “/” Re: How to replace all “../” href links with “/”

#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??