Help please! Why are some links not working?
Permalink
Hi, I hope someone can help, this is driving me crazy.
On my site –http://www.the-web-box.co.uk/arn... – I have 4 different menus, 2 on the actual html and not editable and 2 concrete5 Auto Nav menus. All links work fine when visiting from the homepage. However when I visit one of the Auto Nav pages and then click on one of the hard wired page links (image links and footer links) rather than simply going fromhttp://www.site.com/faq tohttp://www.site.com/about-us it goes tohttp://www.site.com/faq/about-us – just adding the page destination onto the end of the existing url. No page exists there so the link is broken.
This is hopefully something simple, any help very much appreciated.
Thanks,
John
On my site –http://www.the-web-box.co.uk/arn... – I have 4 different menus, 2 on the actual html and not editable and 2 concrete5 Auto Nav menus. All links work fine when visiting from the homepage. However when I visit one of the Auto Nav pages and then click on one of the hard wired page links (image links and footer links) rather than simply going fromhttp://www.site.com/faq tohttp://www.site.com/about-us it goes tohttp://www.site.com/faq/about-us – just adding the page destination onto the end of the existing url. No page exists there so the link is broken.
This is hopefully something simple, any help very much appreciated.
Thanks,
John
Looks like your pulling the link of the page you are currently on. If you have this set up by blocks I suggest using the full url (ie "http://www.site.com/about-us" instead of "about-us"). If you have in php you could use the "$this->url('/about-us')" method. Or if you plan to move this site you could use the "BASE_URL.DIR_REL.'/about-us/'" as a URL (php as well).
Thanks a lot for getting back to me. Unfortunately I'm new to concrete5. Could you maybe explain how to do that?
Ta!
John
Ta!
John
How are the footer links coded? Are they hard coded on the footer or did you create content or HTML blocks for the footer links?
Hello again. Both the footer links and the image links on the left side (I am an artist etc...) are hard coded into the html page.
Can you find where the code is for this page? And give a section of code of how the links are displayed?
Sorry, I'm a diddy. I should have put the entire path into the link "http://www etc..." I thought I had tried that, seems starnge that it should work now.
Thanks again,
John
Thanks again,
John
Yeah its because it uses the current url as a reference and not the absolute url (ie just the site name and concrete folder *if one is included). Got me before thats why I was asking if you put the whole link in earlier. Well glad you figured it out.