LPS-48004 take into account page scopes when generating URLs