Title: misbehaving the_permalink()
Last modified: August 18, 2016

---

# misbehaving the_permalink()

 *  [ShareThis](https://wordpress.org/support/users/sharethis/)
 * (@sharethis)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/misbehaving-the_permalink/)
 * Hi there!
 * I have a ShareThis plugin user who has reported a problem with ShareThis. I’ve
   tracked it down to an incompatibility between ShareThis and Simple Tags. It appears
   that when Simple Tags replaces tags with links due to “Active auto link tags 
   into post content” being set, it does the replacement on the permalink returned
   from the standard WordPress the_permalink() template tag. Basically, a slug that
   matches a tag gets replaced with a link, making an invalid URL. Here’s an example:
 * Tag: mouse
 * Permalink: [http://example.com/mighty-mouse/](http://example.com/mighty-mouse/)
 * Results of the_permalink(): [http://example.com/mighty-](http://example.com/mighty-)
   [mouse](http://example.com/mighty-mouse/)/
 * I tried to create a quick patch for ShareThis by stripping HTML out of the permalink,
   but I wasn’t successful, since it appears that Simple Tags applies the replacement
   after the ShareThis code is run.
 * Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [ShareThis](https://wordpress.org/support/users/sharethis/)
 * (@sharethis)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/misbehaving-the_permalink/#post-660070)
 * Oops! The formatting foiled me. Let me try again…
 * Tag: mouse
 * Permalink: `http://example.com/mighty-mouse/`
 * Results of the_permalink(): `http://example.com/mighty-<a href="http://example.
   com/mighty-mouse/" rel="tag" title="Posts tagged with mouse">mouse</a>/`
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/misbehaving-the_permalink/#post-660071)
 * If you are at troubleshooting anyway… there were several posts like this recently:
   
   [http://wordpress.org/support/topic/145345?replies=2](http://wordpress.org/support/topic/145345?replies=2)
 *  [Amaury Balmer](https://wordpress.org/support/users/momo360modena/)
 * (@momo360modena)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/misbehaving-the_permalink/#post-660181)
 * Strange, my function don’t allow remplacing tags by link into a html tag…
 * Can you contact me via my contact form? (you can find it in website author :P)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘misbehaving the_permalink()’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [Amaury Balmer](https://wordpress.org/support/users/momo360modena/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/misbehaving-the_permalink/#post-660181)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
