render:gettemplateurl Tag Does Not Return The Virtual WebRoot Vanity Url

(Doc ID 2034565.1)

Last updated on OCTOBER 31, 2016

Applies to:

Oracle WebCenter Sites - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

The render:gettemplateurl tag does not return the Virtual WebRoot Vanity url.  Instead it is returning the Sites query string url.

For example:

<render:gettemplateurl outstr="pageURL1" tname="PageLayout" args="c,cid" />
<render:gettemplateurl outstr="pageURL2" tname="PageLayout" webrootname="AbsoluteWebRoot" args="c,cid" />

URL1: <%=ics.GetVar("pageURL1")%><br/>
URL2: <%=ics.GetVar("pageURL2")%><br/>

The resulting page displays:

URL1: /cs/Satellite?c=Page&cid=1429918760073&pagename=Page%2FPageLayout&rendermode=preview
URL2: /cs/Satellite?WEBROOTNAME=AbsoluteWebRoot&c=Page&cid=1429918760073&pagename=Page%2FPageLayout&rendermode=preview

The sites.environment property in futuretense.ini has been set to match the Virtual Web Root.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms