Velocity Scripting Help - Removing Parameters
We are passing the full url of a page via the mbox but realised that it is also including the # fragment or parameters, we want to then use the url in our recommendations design, an example entity url is:
http://www.example.com/page1.html?adobe=QA
In our design we set:
<a href="$entity1.pageUrl">$entity1.name</a>
It outputs like this:
<a href="http://www.example.com/page1.html?adobe=QA">My Item</a>
but we really want it to out like:
<a href="http://www.example.com/page1.html">My Item</a>
Is there a way through Velocity Scripting to remove any parameters and # fragments so that only the raw url is left?