[FORWARD PORT] LPS-50590 pass classNameId in the URLs

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