Skip to Content
author's profile photo Former Member
Former Member

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

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%3Abrand%3AMBH11A00107%3Abrand%3AMBH11A00359%3Acolour%3AYellow_FFFF00&text=&isFacet=true&facetValue=Yellow_FFFF00&pageFacetData=# to and make it appear in the browser as http://www.myshop.com/yellow-vests when someone clicks on it ?

Regards, Hena

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 08, 2016 at 03:45 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 08, 2016 at 05:15 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.