cancel
Showing results for 
Search instead for 
Did you mean: 

Top level redirect on menu item - how to do it well

Top level redirect on menu item - how to do it well

I'm on magento 1.9 and one problem I've never been able to figure out is how to get a top menu item to redirect to an alternate category page as magento keeps try to revert to its default

 

I've tried to do it in 'URL rewrite management' but it does'nt allow it or just bypasses the setting to go to default

 

Here is the behavior below

https://www.useloom.com/share/a13b2814c916425fbdaf125591593549

 

The only workable solution I have found is to add this to the 'customer layout update' for every item i wish to redirect, however, as you can see on the video, there is a delay in the redirect and it takes the visitor to a page without products Smiley Sad for obvious reasons this aint ideal

Thanks in advance

<reference name="head">
    <block type="core/text" name="SOME.BLOCK.NAME.HERE">
        <action method="setText">
            <text><![CDATA[<script type="text/javascript">location.replace("https://poshh.co.uk/bathroom/toilets.html");</script>]]></text>
        </action>
    </block>
</reference>

 

Tags (3)
1 REPLY

Re: Top level redirect on menu item - how to do it well

Hello @andrewellis3

 

you can do the same thing using.haccess file

 

Redirect 301 /oldfile.htm /newfile.htm

 

same way you can add all url and you can do it.

 

Hope it will help you.

 

If it will help you then mark as solution.