I'm using this module to provide a newsletter service on a multilanguage site that has Spanish/English versions, and when i send the newsletter using the Spanish version of the website to the customers, they get as result the following URL path for the language web/es/es which makes the site throw an error,(the path on the website is fine, it gets somehow duplicated when i send the newsletter) any clue why is Drupal duplicating the language variable on the path?

In the following link theres a SS of the newsletter footer whit the e-mail the users recieve, and the wrong path.

http://img683.imageshack.us/img683/7705/helpt.png

Please any suggestions or additional information required would help a lot, thanks in advance.

Comments

xecstasyx’s picture

those are book links, isnt it? i mean you added child pages to your newsletter? ive tried to do that also but i get the same issue, the language prefix gets duplicated im not sure if its a book module bug or maybe simplenews is getting it wrong.

so ill subscribe to this issue.

edit: typo.

sutharsan’s picture

rodaros, on which links does this problem occur?
* Links in content
* Unsubscribe link
* (un)Subscription confirmation links
* Links inserted with tokens (e.g. !newsletter_url or [simplenews-newsletter-url])
Did you set the $base_path variable in settings.php?

rodaros’s picture

About the links: it happens on the links to the pages generated by the book(core module) and only when i send the newsletter and is readen by the user that's when the language variable gets duplicated to /es/es instead of /es, it only happens on the Spanish version of the website, english version works fine, about the settings.php, i don't understand why would this help, would you explain please? thanks again for your response and any help you can provide, salute.

sutharsan’s picture

Need clarification: What is the relations between book node and newsletter? Do you use book nodes as newsletter? What is the default site language, English? Have you tried to set the $base_url? Are other URL's (unsubcsribe) correct in the spanish newsletter?

rodaros’s picture

The Newsletter is created whit the Newsletter issue content type and i used the book(core functionality) to add the pages to this newsletter, the default language is english and i don't know what does the $base_url or how is related whit my issue, the unsubscribe always remains in english language, keep asking if you need any more info, thanks in advance.

sutharsan’s picture

Are other URL's (e.g. unsubscribe) correct in the spanish newsletter?

rodaros’s picture

The unsubscribe always remains whit the english path or default.

sutharsan’s picture

Category: bug » support

Sorry, but I don't know if you setup is correct and whether your situation is caused by Simplenews or you multilingual setup.

sutharsan’s picture

No activity, closing issue.

sutharsan’s picture

Status: Active » Closed (fixed)
jorge.alves’s picture

Status: Closed (fixed) » Needs review

Hi,
I am having the same issue.
When I send mails out the link in the content shows always ..en/en.. which brakes the url in the newsletter.
Is there a solution for this? I am using related content + simple news and multi-lingual website en/fr/pt-pt
Thanks,
Jorge

Hobbes-2’s picture

Same issue here

Language negociation : Path prefix with language fallback.
Stantard drupal 6 installation, with last version of Simplenews and MimeMail

The /en/en or /fr/fr broken link are link from Views (insert views in a table)

sutharsan’s picture

Try the latest 1.x release (always do so before you file an issue!)

sutharsan’s picture

Did you set the $base_path variable in settings.php?

sutharsan’s picture

Status: Needs review » Active

Does this occur when mime mail is used? Try disabling Mime Mail to narrow down the possible causes.

Hobbes-2’s picture

Yes, your right, the problem is Mimemail, not Simplenews, sorry.

I found a Mimemail patch here : http://drupal.org/node/417462
It's working now.

Thanks !

luksak’s picture

this patch doesn't fix the bug. i've found out that for example in hook_mail_alter() the source of the node translation is passed. i think this causes the [simplenews-newsletter-url] token to point to the wrong node.

miro_dietiker’s picture

Version: 6.x-1.0 » 6.x-2.x-dev
Category: support » bug
Priority: Normal » Minor
Status: Active » Fixed
StatusFileSize
new1.6 KB

The token url always corresponds to the node translation source which is wrong.

Committed new token code to switch to correct url.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.