[FORWARD PORT] LPS-50301 make friendly URL control consistent

This is a forward port of https://github.com/sergiogonzalez/liferay-plugins-ee/pull/106