HG-332 Fix links being returned when they should not

I guess parseLink do something that I don't understand - because from its description I would expect this condition to always be false - you pass url ($localUrl) to parseLink and then check if that url is the same as in href in the output.