But I’m not sure how to escape the hash tag. It does not look like escaping it with %23 does any good. Currently, the vanity URL is not being created at all, and it’s due to the hash tag. Once I remove the “#tab-2”, the vanity URL takes effect. Is there a different way of encoding the hash tag?
This isn’t possible. Something like “#tab1” is only used by the browser to navigate to a specific part of the page AFTER the full page has been loaded. But “#tab1” isn’t part of the request sent to the server. Therefore you cannot use it for a view-id and cannot “hide” it using PrettyFaces.