Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-23 23:10:12

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Removing trailing slash in breadcrumbs

Hi there,

I have breadcrumbs on my website http://www.mischavanderspek.com/abstract-art-gallery
If you click on the breadcrumb will will get http://www.mischavanderspek.com/abstract-art-gallery/ which is bad for SEO. How do get rid of the trailing slash in the breadcrumbs?

this the the breadcrumbs code:

<div id="breadcrumbs"><p><txp:breadcrumb label="Home" title="1" link="1" linkclass="breadcrumb" wraptag="" /><txp:if_individual_article> &raquo; <txp:title/></txp:if_individual_article></p></div>

Any help is much appreciated!

Thanks,
Mischa

Offline

#2 2011-02-24 08:36:27

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,376
Website GitHub Mastodon

Re: Removing trailing slash in breadcrumbs

Tangentially related: Trailing slashes are the canonical form of links to sections throughout Textpattern – so how did you achieve the slash-less link in the first place?

Offline

#3 2011-02-24 09:10:37

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Re: Removing trailing slash in breadcrumbs

Hi Robert,

You are probably right but did you ever see a person type in the trailing slash at the end? like www.website.com/ or www.website.com/section/

All links I made are just HTML links and without trailing slash, similar for the canonical links which I also did without the trailing slash. Hence trailing slashes are not user friendly and only serve purpose for what exactly?

Offline

Board footer

Powered by FluxBB