Open jason-zz opened 10 years ago
Could this problem also appear elsewhere? Could /about-us and /about-us/staff end up replacing one another?
I suggest a better solution to this is to ensure that the replacement mechanism always replaces quoted strings, rather than just in this one condition.
Test cases please :)
@tractorcow Yeah that may happen in that case, but I am not sure. I agree that it should replaces quoted string.
A simple test case: add couple paragraphs, insert HomePage (URL segment must be '/') hyperlink, then add some more links.
@tractorcow
My debug logs. http://shrib.com/7l5sHpeU
when href="/", value of $link is forward slash symbol. All forward slashes in HTML like
will be replaced with tracking link and layout will be broken. Should search and replace '"/"'.