Menu Link Issue

Hello,
 
So I want to do some custom links to anchor points on CMS pages. These generally work fine.
However, when you are on a product category page and use one of the links in the UB Mega Menu it just add the link to the end of the URL you are on. How do you get around this?
So for example:
link is: http://www.x.com/cmspage#anchorpoint1
This works fine from homepage (www.x.com)
However, let’s say you navigate to a product category: http://www.x.com/productcategory and from there you use the mega menu to get the CMS page you end up with http://www.x.com/productcategory/cmspage#anchorpoint1 which of course 404s.
Any ideas?
 
Thanks 
 
 

1 answer

Profile photo of Ziven Staff 84830.00 $tone November 29, 2018
Public

Hi There,

However, when you are on a product category page and use one of the links in the UB Mega Menu it just add the link to the end of the URL you are on. How do you get around this?

In order to use the internal link, you will need to include the prefix {base_url}, for instance: 

Change: http://www.x.com/cmspage#anchorpoint1
with: {base_url}/cmspage#anchorpoint1

PS. We wonder if you have another account at Ubertheme? We could not keep track of your purchase. 
Best Regards,
Ziven

#1

Please login or Register to Submit Answer

Written By

Comments