You are here

Drupal weird urls

Submitted by nicolas on Thu, 12/06/2012 - 09:40

I was working on a site, and suddenly saw that the urls were a bit funky. At the end of each url I found some hash, like this:

#.UMBYwJPjnMA

At first I wanted to know what was causing this. I googled it, but couldn't find anything drupal related. So I started looking into the drupal modules. I searched for hook_init. But this didn't help me. Then I googled again and finally came across this post.

Apparently it is caused by addthis. On the website I encountered the problem, only a custom block with an embedded script was used. And it contained this:

<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>

If you change the "data_track_addressbar" variable to false, it stops generating hashes at the end of urls on your site. Another problem solved!

 

 

Blog category: