Jump to content

[FIXED] Some announcement links contain double slash //


Recommended Posts

For some reason links back to the announcements page are having // in them (v3.8.1)

 

For Example...

 

This: http://www.happystarhosting.com/billing//announcements.php

 

Instead of This: http://www.happystarhosting.com/billing/announcements.php

 

Can anybody else confirm if they are having this issue. They still load fine, but using Xenu to check links, it counts them as broken.

 

It only seems to be coming from the announcements pages.

 

More Details:

Broken links, ordered by link:

http://www.happystarhosting.com/billing//announcements.php

error code: 404 (not found), linked from page(s):
http://www.happystarhosting.com/billing/announcements.php?id=1
http://www.happystarhosting.com/billing/announcements.php?id=2
http://www.happystarhosting.com/billing/announcements/2/Billing_System_Upgraded.html
http://www.happystarhosting.com/billing/announcements/1/New_Website_Has_Gone_Live.html

http://www.happystarhosting.com/billing//announcements/1/New_Website_Has_Gone_Live.html
error code: 404 (not found), linked from page(s):
http://www.happystarhosting.com/billing/announcements.php

http://www.happystarhosting.com/billing//announcements/2/Billing_System_Upgraded.html
error code: 404 (not found), linked from page(s):
http://www.happystarhosting.com/billing/announcements.php

http://www.happystarhosting.com/billing//announcementsrss.php
error code: 404 (not found), linked from page(s):
http://www.happystarhosting.com/billing/announcements.php?id=1
http://www.happystarhosting.com/billing/announcements.php?id=2
http://www.happystarhosting.com/billing/announcements/2/Billing_System_Upgraded.html

http://www.happystarhosting.com/billing/announcements/1/New_Website_Has_Gone_Live.html

http://www.happystarhosting.com/billing//images/article.gif
error code: 404 (not found), linked from page(s):
http://www.happystarhosting.com/billing/announcements.php?id=1
http://www.happystarhosting.com/billing/announcements.php?id=2
http://www.happystarhosting.com/billing/announcements/2/Billing_System_Upgraded.html
http://www.happystarhosting.com/billing/announcements/1/New_Website_Has_Gone_Live.html

http://www.happystarhosting.com/billing//images/rssfeed.gif
error code: 404 (not found), linked from page(s):
http://www.happystarhosting.com/billing/announcements.php?id=1
http://www.happystarhosting.com/billing/announcements.php?id=2
http://www.happystarhosting.com/billing/announcements/2/Billing_System_Upgraded.html
http://www.happystarhosting.com/billing/announcements/1/New_Website_Has_Gone_Live.html

Link to comment
Share on other sites

In announcements.tpl find this line

<p><a href="{if $seofriendlyurls}{$systemurl}[b]/[/b]announcements/{$announcement.id}/{$announcement.urlfriendlytitle}.html{else}{$smarty.server.PHP_SELF}?id={$announcement.id}{/if}" class="heading2"><img src="images/article.gif" align="absmiddle" border="0" /> {$announcement.title}</a></p>

and remove the slash that is highlighted in bold

eg... {$systemurl}announcements

Edited by sparky
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated