I noticed that when you read a "newsletter" online from the link in the email, it has &tmpl=component at the end of the URL which removes the normal website template.. I would like it to render with the default site template. By removing it manually it renders good.

I reviewed the various config options, but don't see any option to do this.

Thanks

Hi,

As you have found out you can't change this in Acymailing. All major mass mailing solutions offer an online view like Acymailing does.

The only thing you can try is to add a rewrite rule to your .htaccess that will remove the "tmpl=component" string from your url.

Please note that this may cause css conflicts between your email and your website template.

You can try the code below. Please backup your .htaccess file before you make any changes.

RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)tmpl=raw(&|$)
RewriteCond %{QUERY_STRING} !(^|&)userid=([^&]+)(&|$)
RewriteRule ^ %{REQUEST_URI}?%{QUERY_STRING_PARAM} [QSD,L]

Hi Guessing that was a copy and paste from someting else as it had RAW in there, but you got me on the right track, thanks. This is what I ended up with, it just removes the tmpl=component parameter and leaves the user one so the newsletter has the context still, I also added in check to make sure the URL was contained /acym/ so I don't change any other url...

Thanks again.

RewriteCond %{REQUEST_URI} ^(.*)/acym/(.*)$ 
RewriteCond %{QUERY_STRING} ^(.+?&|)tmpl=component*(?:&(.*)|)$ [NC]
RewriteRule ^ %{REQUEST_URI}?%1%2 [R=301,L]

Hi,

Somehow my last edit wasn't saved.

RewriteCond %{QUERY_STRING} (.*)(^|&)tmpl=component(&|$)(.*)
RewriteCond %{REQUEST_URI} /component/acym/archive/
RewriteRule ^ %{REQUEST_URI}?%{QUERY_STRING_PARAM} [QSD,L]

You might want to add a longer path to check to prevent the rule being applied to other "acym" paths. I also reccommend to use QSD in order to prevent accidental loss of the userid. Without the 301 it;s just an internal rewrite, which is fine for this purpose.

Anyway, I'm glad you have found a working solution.