Currently, we are having a hyperlink tag and the MVC action method is called directly from hyperlink as

<a href="/api/sitecore/{controller Name}/{action Name}"> Hyperlink Text

While hovering on the hyperlink text we are able to see the same link in the browser as /api/sitecore/{controller Name}/{action Name}.

Is there a way where we can hide the word Sitecore while calling the action method. So that while hovering also we will not be able to see it.

  • Is this POST action or GET action on click?
    – Marek Musielak
    Commented May 27, 2019 at 8:18
  • This is on the POST action
    – PVM
    Commented May 28, 2019 at 0:09

1 Answer 1


You can create your own custom route pipeline in sitecore and map to route the url link like below

public class YourCustomRouteName
    public virtual void Process(PipelineArgs args)
            new {
                controller = "YourAssemblyName.YourControllerName, YourAssemblyName",
                action = "YourActionName", 
                id = UrlParameter.Optional 
        <processor type="YourAssemblyName.YourCustomRouteName, YourAssemblyName" patch:before="processor[@type='Sitecore.Mvc.Pipelines.Loader.InitializeRoutes, Sitecore.Mvc']" />
<a href="customapi/linkhover">

This way you can achieve to hide the word Sitecore while calling the action method in any link control .

Reference Link here

  • Thanks Debal. Will check the link provided by you.
    – PVM
    Commented May 28, 2019 at 0:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.