I want to add a service link to the russian network "odnoklassniki" on my drupal page.

After some research i found some information, which made me create a new service "i named that thing russian_services2.module", but i really think it should also be added to the russian services of the module by default.

$links['odnoklassniki'] = array(
    'name' => 'Odnoklassniki',
    'description' => t('Поделиться с друзьями'),
    'link' => 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl=<encoded-url>',
    'icon' => 'odnokl.png',
  );

For some reason the link created on the node page looks like this:

http://www.odnoklassniki.ru/dk?st_cmd=addShare&st_s=1&st__surl=http%3A//www.come-alps.com/en/content/home

Can someone please tell my why the dots in my link definition get replaced by a '_'? After replacing the link gets to an error page of the odnoklassniki page.

I've already tried to encode the dot (using %2E) without success...

Comments

Niko_K’s picture

Title: Porblem with dots in a link's url (or: add the russian service link "odnoklassniki") » Problem with dots in a custom service link (or: add the russian service link "odnoklassniki")
Mulder’s picture

Hi, Niko_K!
I'm stuck with this dots issue too. Did you solve this problem yet?

simon georges’s picture

Version: 7.x-2.1 » 7.x-2.x-dev

Cross-referencing #1825036: seoigg.de service not working OR Not all services support elipses [...] in the link and moving to -dev to give the issue some visibility.

TheCrow’s picture