My Oracle Support Banner

render:gettemplateurl Tag Does Not Return The Virtual WebRoot Vanity Url (Doc ID 2034565.1)

Last updated on JANUARY 17, 2018

Applies to:

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


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.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.