Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Changing the Follow the link below

edited November 2011 in Vanilla 2.0 - 2.8

I am running Vanilla 2 embedded into my website. I have EMailSubscribe running. When an email is sent to a user the URL has
Follow the link below to check it out:

I would like to change the url to show

I would like it if my users when they click on a URL in an email would go to the embedded version of Vanilla.


  • Options
    edited December 2011

    I had to change two files.
    plugins/EMailSubscribe/default.php - Line 82

    applications/dashboard/models/class.activitymodel.php - Line 693

    $unchanged_message = sprintf(
    T($Story == '' ? 'EmailNotification' : 'EmailStoryNotification'),
    Url('/discussion/'.$DiscussionID.'/'.Gdn_Format::Url($DiscussionName), TRUE),
    $changed_message = str_replace('vanilla','forum#',$unchanged_message);
  • Options
    ToddTodd Chief Product Officer Vanilla Staff

    There is a better way to do this in your config:

    $Configuration['Garden']['ExternalUrlFormat'] = '';
  • Options

    Todd said:
    There is a better way to do this in your config:

    $Configuration['Garden']['ExternalUrlFormat'] = '';

    Where's the config file?

  • Options
    sahotataransahotataran Developer, Bay Area - CA ✭✭✭


    There was an error rendering this rich post.

  • Options

    Do I add that line to the file? I am not seeing that as an option? I am running Version 2.0.18.

  • Options

    sahotataran said:

    Thanks sahotataran!

    This only fixed the main link to the forum, however the confirmation link remained the same. Do you know of any fixes for that as well? Thanks

  • Options

    Hey soundgod1818,

    I added it to the file and replaced the URL.

  • Options


    I am also facing this same issue with embed version. I am using Vanilla Version 2.5.1 with jsconnect plugin. I added the following line to my config.php file to replace vanilla installation URL with Embed URL.

    $Configuration['Garden']['ExternalUrlFormat'] = '';

    Whenever I use "ExternalUrlFormat" configuration, In "ConversationMessage" notification email action URL get encoded which leads to "Page Not found" upon link/button click.

    converts to

    Thank you.

Sign In or Register to comment.