Closed (fixed)
Project:
Notifications
Version:
6.x-4.0-beta7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2009 at 12:31 UTC
Updated:
21 Mar 2012 at 13:13 UTC
A mail looks like this
Greetings, Test Testersen.
These are your messages New content of type Alert has been submitted - Drug-eluting stents found safe, superior to bare metal stents Read more http:///node/3854
Updates for Feed: AlphaGalileo Science RSS Channel - AlphaGalileo Science RSS Channel Read more http:///node/3309 Read more http:///node/3309 -- This is an automatic message from forsker.net To manage your subscriptions, browse to http:///user/145/notifications
For all [node-url] tokens the domain name is left out and the links are not usable.
Comments
Comment #1
lennart commentedIt's a problem in content notifications_content:
$values['node-url'] = url('node/'. $node->nid, array('absolute' => TRUE));
This is not giving the domain name in the email, at least on my server.
Comment #2
jose reyero commentedIt should, check your site settings.
Comment #4
Jason Dean commentedI have exactly this same problem, using Notifications 6.x-2.1
Both [node-url] and [subscriptions-manage] tokens are missing the domain name.
Any suggestions on what to check?
Many thanks!
Comment #5
Jason Dean commentedAh I think I fixed it - the optional $base_url in settings.php needs to be set the the domain.
I guess the core url() function must use this to generate an absolute URL.
Comment #6
idcm commentedI am having a similar issue but changing the base didn't help.
I am running messaging 2.2 and notifications 2.2 and testing with OG 1.4 posts.
It only happens on notifications for new content - where the Read more at link shows the node/# versus the alias. Update and comment show the alias version of the url.
Any more ideas?
Comment #7
pixelpreview@gmail.com commentedsame problem
the base url is not set in email notifications !
Comment #8
speedyboum commentedsubscribe
Comment #9
seehawk commentedThe fix listed in #5 worked for me as well. Thanks!
Comment #10
kmajzlik commentedWhy should i use $base_url? I am using Domain module, i want that it handles link from url(); function.
Comment #11
caspercash commentedHi drupal users!
I think I have the same problem as this thread. In my email notification, the token [node-url] returns a url that doesn't have the sites domain. So for example if the node-url is http://drupal.org/node/1234, in the email notification, the url becomes http:///node/1234. its as if the base_url drupal.org is stripped from the url. The links displayed in the footer of the email also looks like this:
http:///user/1541/notifications
http:///notifications/unsubscribe/sid/2374?signature=e701349104532fdf859...
Anybody knows how to workaround this problem? I kind of stuck as to how to solve this one. I would really much appreciate any suggestions/solutions to this problem.
Thanks!
Comment #12
caspercash commentedHello! Anyone here knows the fix for this one?
Comment #13
rbosscher commentedHave you tryed #5?