virtudraft / virtuNewsletter

Yet another MODX's newsletter package
9 stars 3 forks source link

virtu always generate link with full scheme #21

Closed kudykam closed 8 years ago

kudykam commented 10 years ago

For unsubscription link in email it is recommended to add &scheme=full (RTFM) but link is always generate in full URL no matter what setting I use..

-1 : (default value) URL is relative to site_url 0 : see http 1 : see https full : URL is absolute, prepended with site_url from config abs : URL is absolute, prepended with base_url from config http : URL is absolute, forced to http scheme https : URL is absolute, forced to https scheme

goldsky commented 10 years ago

You can't change this? http://rtfm.modx.com/extras/revo/virtunewsletter#virtuNewsletter-5.TheNewsletters

<!-- unsubscribe link -->
<a href="[[~62?
&subid=`[[+virtuNewsletter.email.subid]]`
&h=`[[+virtuNewsletter.email.hash]]`
&act=`unsubscribe`
&scheme=`full`
]]">
Unsubscribe
</a>
kudykam commented 10 years ago

I can change it, but it always insert full link. This link is inserted into email template so user can unsubscribe by clicking on the link in email. Because of different subdomain I need to show only relative link.

goldsky commented 10 years ago

is this related with babel?

kudykam commented 10 years ago

I dont know, why do you think its related?

goldsky commented 10 years ago

try to update 1.6.0-beta2, let me know the outcome.

kudykam commented 10 years ago

no matter what I put in scheme (abs, full, -1), it always generate full llink

goldsky commented 8 years ago

It is in the core, because the link would not be the email's domain, would it?