Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Custom Token
Migrateduser
We have added a custom token where if the Link Contains /sites/XYZ/default.page
Then the token will remove the XYZ from the URL
if (this.mParameter.contains("sites/XYZ")) {
LOGGER.debug("URL Contains XYZ");
String out_old = this.mParameter;
String out_new=out_old.replace("sites/XYZ/", "/");
LOGGER.debug("this.mParameter ==>"+out_new+":-----");
writer.print(out_new);
}
else
{
LOGGER.debug("URL Does not Contain XYZ");
writer.print(this.mParameter);
}
In the XSLT we have the below
$XYZ_PREFIX[
]
But when the Component Renders, its adds JUNK characters
"/default.page%0A%09%09%09%09"
Find more posts tagged with
Comments
There are no comments yet