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.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | simplenews_684864_18_token_lang.patch | 1.6 KB | miro_dietiker |
Comments
Comment #1
xecstasyx commentedthose 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.
Comment #2
sutharsan commentedrodaros, 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?
Comment #3
rodaros commentedAbout 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.
Comment #4
sutharsan commentedNeed 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?
Comment #5
rodaros commentedThe 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.
Comment #6
sutharsan commentedAre other URL's (e.g. unsubscribe) correct in the spanish newsletter?
Comment #7
rodaros commentedThe unsubscribe always remains whit the english path or default.
Comment #8
sutharsan commentedSorry, but I don't know if you setup is correct and whether your situation is caused by Simplenews or you multilingual setup.
Comment #9
sutharsan commentedNo activity, closing issue.
Comment #10
sutharsan commentedComment #11
jorge.alves commentedHi,
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
Comment #12
Hobbes-2 commentedSame 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)
Comment #13
sutharsan commentedTry the latest 1.x release (always do so before you file an issue!)
Comment #14
sutharsan commentedDid you set the $base_path variable in settings.php?
Comment #15
sutharsan commentedDoes this occur when mime mail is used? Try disabling Mime Mail to narrow down the possible causes.
Comment #16
Hobbes-2 commentedYes, 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 !
Comment #17
luksakthis 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.
Comment #18
miro_dietikerThe token url always corresponds to the node translation source which is wrong.
Committed new token code to switch to correct url.