Title: WP adding trailing &quot;#!&quot; to links?
Last modified: August 21, 2016

---

# WP adding trailing "#!" to links?

 *  [btraill](https://wordpress.org/support/users/btraill/)
 * (@btraill)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wp-adding-trailing-to-links/)
 * I’m desperately trying to figure this out. I know it has something to do with
   the theme and its AJAX use. (or so at least I think!)
 * I’m adding a custom link to menus, but everytime it’s clicked WP adds the #!…
   For example mydomain.com/#!/example
 * I just want it to ignore adding that #! for this link/url. Is there anyway to
   bypass this? I’ve done some searching and can’t find a solution.
 * To test it yourself: [http://mediabear.ca/decoy/](http://mediabear.ca/decoy/)
   and please click the “Forums” link.

Viewing 1 replies (of 1 total)

 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wp-adding-trailing-to-links/#post-4153084)
 * Yes, the #! (hashbang) does has something to do with the theme and its AJAX. 
   The hashbang was developed by Google so their spiders could crawl Ajax content,
   and not without some controversy (the article [Breaking the Web with hash-bangs](http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs)
   comes to mind)…or at least some contention. It’s more than likely being generated
   and added in a javascript file in your theme and you’d have to find the source
   and modify that. That said, it’s certainly being used often.

Viewing 1 replies (of 1 total)

The topic ‘WP adding trailing "#!" to links?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/wp-adding-trailing-to-links/#post-4153084)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
