We have three sites that use sym-link to point to one durpal installaion. Whenever a subscription email goes out, the content url within the email seems to randomly select one of the multi-site urls. How do I control which site is in the email?

Our setup is

domain.com/site1
domain.com/site2
domain.com/site3

Sometimes the emails use domain.com/site1/node-title and other times it uses domain.com/site2/node-title. For the same content post but different users the content url within the email also varies.

If this is not the right module, please let me know where I should submit this support request. Thank you.

Comments

salvis’s picture

!url is generated in _subscriptions_content_node_mailvars() in subscriptions_content.module, as

     $mailvars['!url'] = url('node/'. $node->nid, NULL, NULL, TRUE);

using the url() core function.

If you get different sites, then you're probably running cron from each site (by default 200 notifications per run in the beta version), and whichever cron picks up the record from {subscriptions_queue} will use its site.

I'm not sure what you mean with "content url" and "node-title". I would expect seeing URLs like

domain.com/siteN/node/NID

If you're seeing something else, you probably have an additional module installed that influences the output of url().

ianchan’s picture

Status: Active » Closed (fixed)

Targeting the cron job to the site generating the subscription emails resolved the issue. Thank you.