Show TOC

Navigation Based on URL FragmentsLocate this document in the navigation structure

URL fragments can be used for inner-app- and cross-app navigation in the SAP Fiori launchpad.

The following URL shows an example of a navigation based on fragments of a standard URL. The URL part beginning with the hash (#) character is the fragment that is used for navigation:

http://<server>:<port>/<path>/FioriLaunchpad.html#<fragment>

Note In web browsers you may have to encode some parts of the URL.

As you load only one HTML page from the server, all information about the apps to be loaded has to be encoded in the URL fragment. To do the actual navigation, the following two options exist:

  • Setting the browser URL fragment explicitly with a JavaScript call
  • Implicitly by rendering an href-based link containing the relative URL with the hash fragment. In this case, the hash change is performed by the browser itself when the user clicks on the link.

The unified shell services provide a listener which is registered for the hash change event and loads the app according to the information encoded in the URL hash.