Skip to main content
BreakawayPaul
Inspiring
April 4, 2016
Answered

Weird characters appended to URL string.

  • April 4, 2016
  • 2 replies
  • 638 views

So, while I do use ColdFusion at work, I also use it on my personal website, where I host a blog and photo gallery.

Whenever I click on a post or a gallery pic, I notice that the URL is appended with some sort of token.

For instance, this:

http://mysite/post/2224

becomes this:

http://mysite/post/2224#.VmKaAipG_0

It makes for some pretty ugly URL strings when I want to paste something to someone.

My host uses CF9 (I think) and Linux.  Is there an obvious reason it does this?  I'm using session management and client cookies in Application.cfc, so maybe that has something to do with it.

    This topic has been closed for replies.
    Correct answer haxtbh

    Do you use a javascript plugin like AddThis on your website? Are you using firefox when seeing these links?

    I know AddThis puts params like this onto urls for analytics. - See more here What is Address Bar Sharing Analytics?

    2 replies

    haxtbhCorrect answer
    Inspiring
    April 4, 2016

    Do you use a javascript plugin like AddThis on your website? Are you using firefox when seeing these links?

    I know AddThis puts params like this onto urls for analytics. - See more here What is Address Bar Sharing Analytics?

    BreakawayPaul
    Inspiring
    April 4, 2016

    The /2224/ gets plugged into index.cfm?post=2224 in .htaccess.  This is to make better looking URLs.

    IMO, gallery/index.cfm?album=parent&photo=123 is uglier than /gallery/parent/123

    haxth: YES! I do use addthis! And YES! That was it!  I changed the argument to false, because honestly, NO ONE looks at my blog!

    Wow, I've been racking my brain over that for MONTHS!  Thank you very much!

    WolfShade
    Legend
    April 4, 2016

    If the "/2224" is pulled from a database, check all the data in all the tables.  I may be a bit paranoid, but I would think that my CMS somehow got hacked and some script-kiddie managed to push crap into my data.

    AFAIK, there is no CF9 or Linux reason for the 'ugly' URL parameters.  Have you contacted your host service about this?

    HTH,

    ^_^