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

lennart’s picture

Project: Token » Notifications

It'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.

jose reyero’s picture

Status: Active » Fixed

It should, check your site settings.

Status: Fixed » Closed (fixed)

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

Jason Dean’s picture

I 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!

Jason Dean’s picture

Ah 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.

idcm’s picture

I 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?

pixelpreview@gmail.com’s picture

same problem
the base url is not set in email notifications !

speedyboum’s picture

subscribe

seehawk’s picture

The fix listed in #5 worked for me as well. Thanks!

kmajzlik’s picture

Version: 6.x-1.x-dev » 6.x-4.0-beta7

Why should i use $base_url? I am using Domain module, i want that it handles link from url(); function.

caspercash’s picture

Hi 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!

caspercash’s picture

Hello! Anyone here knows the fix for this one?

rbosscher’s picture

Have you tryed #5?