View Full Version : {vb:raw relpath} in footer creates error for custom pages placed outside of root
bzcomputers
05-10-2013, 03:41 AM
I'm getting a url error for "Top" link in the footer on custom pages which reside outside of the root (forum) directory.
What would I need to change:
href="{vb:raw relpath}#top"
to in order to get it to produce a full url path instead of the current relative path.
Edit:
I just added http://www.XXX.com/ in front of {vb:raw relpath} and that seems to make it work everywhere now.
ForceHSS
05-10-2013, 05:16 AM
a link to your forums to check to make sure all is ok. I know you have fixed it but best to make sure. Also what did you have there before
bzcomputers
05-10-2013, 12:01 PM
The issue was with the "Top" link in the standard vB footer to take you back to the top of the page. It uses a relative url, thus breaking the link for pages that reside outside of the forum. In my case this was all of my custom pages.
I didn't notice the issue until going through Google Webmaster tools and saw a crawl errors associated with everyone of my custom pages (hundreds).
Had to replace this line in footer:
<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
with this:
<li><a href="http://www.cruisin.me/{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
Site: www.cruisin.me (http://www.cruisin.me/)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.