Search code examples
sapui5

How to get rid of the hash symbol (`#`) in the URL in UI5-routing?


Starting the 1.83.x/1.84.x OpenUI5 versions there is a possibility to omit the hash symbol (#) from the browser routing URL.

The new URL-format vs. the old-one:

I've checked the OpenUI5 documentation but could not find how to get rid of this # in the URL.

Is it somewhere in manifest.json?


Solution

  • The OpenUI5 Demo Kit is using a custom Router in order to improve its SEO. See commit 4614eb0.

    Routing without # is not officially supported yet. There is an enhancement request though: https://github.com/SAP/openui5/issues/2993