Topic-icon og:url returning the wrong url

Active Subscriptions:

None
14 years 4 weeks ago #22423 by fb_100000214934509
I forgot to enable that account, it should work now.
The topic has been locked.
Active Subscriptions:

None
14 years 4 weeks ago #22435 by FrischInBigD
Alex -

We are also experiencing the same issue with one of our landing pages...it seems to be only the (Linkedin) "Share" button that has the problem....and so far this is the only page on our site that isn't working correctly. The Share button refers to an Italian website, here is the page of our site if you want to take a look: goo.gl/Oz7AM

Thanks
The topic has been locked.
Support Specialist
14 years 4 weeks ago #22446 by alzander
Sean,
Still doesn't work for me. Can you resend the information.

Frisch,
Your issues is frankly bizarre, and I believe, unrelated to the other user's issues. If you look at the HTML on your page, there's no mention of the Italian website URL (corriere.it). The LinkedIn Share button does use the Open Graph tags on your site, and if you use the Open Graph debug tool from Facebook, it doesn't detect that weird URL either:
developers.facebook.com/tools/debug/og/o...g-your-business.html
Either that's a bug with LinkedIn (we're investigating if there are other reports), or something else very odd is going on. Are you seeing this on any other pages?

All,
We're still trying to narrow this down, but need a site to see the problem in action. If you can Private Message us an admin account, that would really help. We're hoping to have a fix for the 4.2.2 release next week. If you can't send credentials, feel free to try reverting the changes by following the instructions below... that will go back to the old 4.1 method, which may fix your problem for now, but that caused some issues with other obscure URLs (which may not affect you).

To revert, edit the /libraries/sourcecoast/utilities.php file, at line 163, you should see the definition for getStrippedUrl. Please replace that whole block of code with the following:
static function getStrippedUrl()
    {
        $href = JURI::current();
        $juri = JURI::getInstance();
        // Delete some common, unwanted query params to at least try to get at the canonical URL
        $juri->delVar('fb_comment_id');
        $juri->delVar('tp');
        $juri->delVar('notif_t');
        $juri->delVar('ref');
        $query = $juri->getQuery();

        if ($query)
            $href .= '?' . $query;
        return $href;
    }
You'll need to use the URL Debug tool (mentioned above) to refresh Facebook's cache if you want to test immediately.. otherwise, Facebook will detect the changes within 24-48 hours.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 weeks ago #22478 by FrischInBigD
Alex -- just sent login credentials to you via Private Message, fyi.
Thanks
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22582 by alzander
Frisch,
Sorry for the delay. Been doing some research and finally found a post relating to your issue on LinkedIn. This seems to be an issue they are aware of, but you need to report it to them for them to investigate further.

The original bug report:
developer.linkedin.com/forum/linkedin-bu...-reference-wrong-url

Where to report the issue to them. Include the URL of the page with issues and the URL it's trying to go to:
help.linkedin.com/app/ask

Hope that helps,
Alex
The topic has been locked.