Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
This is one in a series of weblogs on External Facing Portal, a new feature in SAP NetWeaver Portal SP14.
The portal now supports navigation based on short, or hashed, URLs. In other words, instead of a long URL, such as the following:
http://myServer:50000/irj/portal?
NavigationTarget=ROLES://portal_content/administrator/
super_admin/super_admin_role/
com.sap.portal.system_administration/
com.sap.portal.system_admin_ws/com.sap.portal.permissions
the portal creates another URL for the same navigation target such as the following:
http://myServer:50000/irj/portal?
NavigationTarget=navurl://0c3c7ac0dfe1083d8f50ae954b8ec25f
This feature reduces network traffic by shortening the URL, enables better use of the broswer cache, and supports HTTP Get requests. An administrator can turn this feature on, and then the navigation service creates hashed URLs for all navigation nodes. All links created by the navigation service are generated as hashed URLs and not as the original, long URL. You do not have to do anything to have the navigation service create hashed URLs for your connector. If the feature is turned on, the hashing occurs automatically. By default, the feature is turned on. There is no real reason for turning this feature off. For more information on short URLs, see Navigation with Short URLs in the Portal Developer Guide on the Help Portal.

Administration Interface

The portal now comes with a Navigation node under the System Administration role that includes a page for turning on and off the short URLs feature, as well as for viewing all short URLs and the navigation nodes to which each corresponds. For each navigation node, you can see its URL with a ROLES prefix and its short URL, which you would use with a navurl prefix. To be honest, there's not much to do here if everything is working OK.

Related APIs

The Navigation API has been updated so you can retrieve both the long (original) and short URLs of a navigation node (INavigationNode😞
  • getHashed(): Returns the short (hashed) URL. If the hashed URL feature is turned off, this method returns the long URL.
  • getName(): Returns the long URL.

The following are the weblogs in the series on External Facing Portal:
3 Comments