cancel
Showing results for 
Search instead for 
Did you mean: 

How to rename a search link to user friendly link in hMC?

Former Member
0 Kudos

Hi Experts,

We have a requirement where we want to map the search the link to a user friendly link.Please find the requirement below,

For e.g. can we include a link like https://www.myshop.com/mens-clothing-inner-nightwear/c-msh1114?offer=&searchCategory=&q=%3Arelevance... to and make it appear in the browser as http://www.myshop.com/yellow-vests when someone clicks on it ?

Regards, Hena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

We had a similar requirement recently, for marketing purposes.

What we did, as we ar not aware of any other solution, is creating a custom RedirectCMSPage that receives the URL to redirect to, and the label that is used for accessing the page.

The redirect itself is a simple Spring forward action in the custom page controller...

So that in the end, Business users may create redirect pages directly via the CMSCockpit without any technical intervention.

Former Member
0 Kudos

Hi Romain, Could you please elaborate more how to achieve this? As Business user will map the url from the cmscockpit.

Regards, Hena

Answers (1)

Answers (1)

Former Member
0 Kudos

go to searchBox.tag file and change the search form method from get to post. when search is invoked it would have called the SearchPageController.java. change the default method from GET to POST to solve the problem