Skip to Content
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. image 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:


To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. KALYANA KRISHNAMURTHI
    Interesting article on Short URL feature support of EFP. However, I fail to understand how the short URLs mitigate network traffic. Could you please provide some insight on the same? Thanks.
    (0) 
  2. navya shetty

    Hi Daniel ,

    I had one query.Where exactly would we be seeing this short url.Will it be visible on address bar? will these short url be applicable on links to some external sites and documents on KM?

    Regards ,

    Navya

    (0) 
    1. Ronny Amran

      Hi Navya,

      I’ve been asked from Daniel to give you an answer 🙂 .

      It depends in which framework you are running, in the classic and AFP frameworks that short URL’s will not be cisible in the address bar, only if the EFP framework.

      The short URL’s are applicable only for portal objects that you are navigating to it e.g iView, Page , Role and etc…

      Ronny.

      (0) 

Leave a Reply