Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: URL in Comment Notification emails contains “en”
Status | Resolved |
Add-on / Version | Publisher Lite 1.1.3 |
Severity | Trivial |
EE Version | 2.7.3 |
Stephen Tidmore
Jan 13, 2014I’m not sure if this has anything to do with Publisher Lite or not, but I wanted to ask just to make sure I can rule it out.
We have comment notification emails going out each time a comment is submitted on a site. The URL to the blog post that is included in the comment notification emails follow this pattern: http://www.website.com/en/blog/article/title-of-entry
I can’t figure out where the “en” is coming from in that link, since this isn’t a multi-lingual website. Is there any chance that is being inserted by Publisher Lite? If so, any idea how I can remove it?
BoldMinded (Brian)
Hi, Stephen. Yeah, Publisher is probably inadvertently putting that in there. I’ll try to track it down this week and get you a new build.
Stephen
Thanks Brian. Did you have a chance to look into this last week?
BoldMinded (Brian)
I did not, sorry. I’ll try to get to it this weekend.
BoldMinded (Brian)
Stephen, what does your notification template contents look like?
Stephen
Hey Brian,
We’re just using the default template. Here’s the code:
BoldMinded (Brian)
Oh that template. I thought you meant Publisher’s notification templates. I was looking in the wrong place. I’ll give it a look tonight and hopefully have a fix for you tomorrow.
BoldMinded (Brian)
Open the Publisher_session.php file and go to line 463 or so inside of set_url_prefix() and change this:
if ( !ee()->publisher_setting->url_prefix())
to this:
if ( !ee()->publisher_setting->url_prefix() || PUBLISHER_LITE)
BoldMinded (Brian)
Stephen, ignore that last comment. I did some testing and I think this is the fix you’re looking for.
BoldMinded (Brian)
Stephen, did this fix the issue?
BoldMinded (Brian)
I’m going to mark this as resolved with the code patch above. I replicated the issue, and the patch fixed it.