Freetag plugin - strange URLs

Creating and modifying plugins.
Post Reply
Christine
Regular
Posts: 53
Joined: Thu Mar 26, 2009 12:50 am

Freetag plugin - strange URLs

Post by Christine » Wed Oct 26, 2016 10:59 am

I've noticed sometimes I get visitors from a Google search who land on a long, convoluted URL like

Code: Select all

http://spikedcandy.com/blog/plugin/tag/60s%20girls/heart-of-glas/anorak-christmas/shake-baby-shake/jany-elle-est-chouette/anorak-christmas/things-fall-apart/cuatro-sudamericanos/christmas-with-serge-and-chantal/things-fall-apart/anorak-christmas/P12.html
It should simply be

Code: Select all

http://spikedcandy.com/blog/plugin/tag/60s%20girls/P12.html
The extra words between the //s are the names of various posts, and you'll note some are even repeated a few times within the URL.

I'm not sure but I believe this issue has to do with the Freetag plugin, as I only get the strange URLs with the /tag prefix. It's not the end of the world as they still land on the right page (though I'd prefer they land on the post, but Google seems to generally favour the tag pages instead), but I would prefer if people weren't getting such ridiculously long addresses. Any fix?

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Freetag plugin - strange URLs

Post by garvinhicking » Wed Oct 26, 2016 11:41 am

Hi!

Hm, probably at some point a relative URL is used and thus creates a wrong "spiderchain". The plugin itself ignores anything after the first slash, so it doesn't actually matter.

Maybe with a tool like screamingfrog you could analyze your blog and see at which point a link like this gets introduced into a page?
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply