![]() |
{vb:raw relpath} in footer creates error for custom pages placed outside of root
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: Code:
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. |
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
|
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: Code:
<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li> Code:
<li><a href="http://www.cruisin.me/{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li> |
All times are GMT. The time now is 11:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|