Topic: #.UM appended to my show view in URL

I'm creating a simple webstore on Rails.  I created a product model with two nested resources as seen in my routes file:
  resources :products do
    resources :backgrounds
    resources :highlights

Whenever I access my product through:

It loads perfectly and then a split second later, Rails adds this to the URL

So the final url is:

The "#.UM" is consistent, but the final nine characters increment upon refresh, so you'll see:  #.UMgXaqUeO95, #.UMgXaqUeO96, etc.

The product model has the typical product fields of name, description, price, etc.  I dynamically change the background css using the background model and I add multiple highlights of the product (i.e. Cool toy.  Fun for the family, etc.).

I kept everything pretty vanilla, so I'm wondering why I'm getting the added characters in my URL.  The apended characters do not show up in any other models, resources or views - it only shows up in the product/show view.

I'm using Rails 3.2.8 with Ruby 1.9.3 on RVM on a MacBook with Heroku in production.   I use MongoDB via Mongoid. The same appended URL code is added in production.

Your help is much appreciated.


Last edited by allanscu (2012-12-12 01:42:47)

Re: #.UM appended to my show view in URL

Nevermind.  I isolated the problem to AddThis (social bookmarking utility).  There's a line in their widget that says:
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>

I changed it to:
<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>