My Oracle Support Banner

How to Control Usage of transformURL() and makeAbsoluteURL() in Custom JavaScript Code (Doc ID 943210.1)

Last updated on DECEMBER 02, 2016

Applies to:

Oracle WebCenter Interaction - Version 6.0.0 and later
Information in this document applies to any platform.
Relevant to WCI 6.0.0 and higher.
***Checked for relevance on 28-Jan-2014***


There are two functions that the WCI gateway will insert around strings and other JavaScript code in order to make sure that the apps still work with the back-end remote server. The two functions are transformURL() and makeAbsoluteURL() and they are used in two different situations. TransformURL() is used when the URL link needs to be gatewayed through the portal and makeAbsoluteURL() is used when the link should not go through the gateway and instead go directly to the specified URL. Relative URLs that are sent through the makeAbsoluteURL() function will have the remote portlet base URL added.

There are times when the JavaScript gateway parser makes decisions on which one to use that are not the best for what an application is designed to do. The gateway wants to use transformURL() when there is at least one gateway link however sometimes your application needs to use makeAbsoluteURL() to direct the user back to a portal page or to an outside location.

In that situation, the developer needs more control over which of the functions are used, if any.


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
 Option One: Turn Off the Transformer
 Option Two: Move the Code into External JavaScript Files

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