Creating Stateless friendly URLs

0 comments



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 com.ibm.portal.theme.hasBaseURL 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="7.0.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_7.0.0.xsd">
<portal action="locate">
<theme action="update" uniquename="ibm.portal.custom.theme8"><parameter name="com.ibm.portal.theme.hasBaseURL" type="string" update="set">true</parameter></theme>
</portal>
</request>

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

http://infolib.lotus.com/resources/portal/8.0.0/doc/en_us/PT800ACD001/admin/mp_friendly_short_url.html

No comments:

Post a Comment

Recent Posts

Popular Posts

© 2011-2019 Web Portal Club