Gav Posted January 20, 2010 Share Posted January 20, 2010 Hi, I recently changed the knowledgebase to use SEO friendly links and noticed a small bug with the links in the nav. Here's the code that is generated: <a href="http://domain.com/index.php">Portal Home</a> > <a href="http://domain.com/knowledgebase.php">Knowledgebase</a> > <a href="knowledgebase/2/Buffering-problems.html">Buffering problems</a> Note the <a href="knowledgebase/2/Buffering-problems.html"> - the link should have a / before it to be <a href="/knowledgebase/2/Buffering-problems.html"> The link that's there without a slash in effect links to domain.com/knowledgebase/2/knowledgebase/2/Buffering-problems.html This link also doesn't really need to be there because it only links to the page you're already on anyway but the way it is gives a 404 for anyone that does decide to click on it. And it might also be worth pointing out that it would be better to change > for > to keep things tidy. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 17, 2010 WHMCS CEO Share Posted February 17, 2010 Hi, There's meant to be a <base href="{$systemurl}"> line in your header template to prevent this problem from occuring as your proposed solution only works if WHMCS is in the root directory of the domain or subdomain and would not work for users with WHMCS in a subfolder. The base href solution works for all. Matt 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.