fix so URLs that are similar to locale URLs dont get redirected

fix for #1029