Creating Stateless friendly URLs


By default, WebSphere Portal URLs include navigational state information. If you configure pages for friendly URLs, the portal appends the state information to the friendly URLs. Some scenarios require short and fully human readable URLs that omit the state information.

For such scenarios you can configure friendly URLs so that the portal does not show that state information.

1. Under the WebSphere Integrated Solutions Console > Resource Environment Provider, “WP ConfigService”, set the custom property friendly.redirect.enabled value to “false”. If the property is not listed there, add it, and set it to false.

2. Set to true in our Theme configuration (xml configuration below)

3. Update navigation.jsp to generate friendly URLs. This seems to be working for all URLs on pages using our theme have friendly URLs.

Use the following xml to update the theme hasBaseUrl parameter:

<?xml version="1.0" encoding="UTF-8"?>
<request build="wpnext_372_01" type="update" version="" xmlns:xsi="" xsi:noNamespaceSchemaLocation="PortalConfig_7.0.0.xsd">
<portal action="locate">
<theme action="update" uniquename="ibm.portal.custom.theme8"><parameter name="" type="string" update="set">true</parameter></theme>

The portal now no longer displays the state information with the URLs.

No comments:

Post a Comment

Recent Posts

Popular Posts

© 2011-2019 Web Portal Club