LPS-41923 Wrong localized friendly url detection

CC @juliocamarero and @sergiogonzalez

This fixes the problem cleanly, we are good for the release.

But still doing redirect here does not really make sense to me. Brian, I will talk to you more about this once get in office.