Monday, March 11, 2013

Magento : Weird url parameter on detail page

Hii.. here is another interesting issue which i have found today that i have added addthis share button on my product detail page and found that there were some weird url param like #AHb4gs1hwck was adding to the end of every product product url in the address bar, it was really weird and i want to remove this so i have google this and found a solution
It was in the add this configuration on the page, the data_track_addressbar was set to true
Before :
[js]<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>[/js]

After :
[js]<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>[/js]

And this completely remove the param from the url

Hope it helps
Happy coding

No comments:

Post a Comment