Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Notifications going to forum URL, not Embed URL

v 2.3.1, embeded.

Hello, I have a forum embeded in a codeigniter site.

The URL's (linking to the topics) in the notification emails are going to the actual forum location.

I need them to go to the embed location URL.

Anyone know how to make that change?



  • This is rather important for us and I can't seem to figure this out.

    To clarify, for example, on the email 'Commented On' Notifications, I am seeing something like this:
    Site Name

    FirstName LastName commented on The Topic of Interest

    Check it out:

    I need this notification rather to be in the following format (referencing the embeded location instead of the actual location):
    Site Name

    FirstName LastName commented on The Topic of Interest

    Check it out:

  • CaylusCaylus ✭✭
    edited February 15

    Hey Donovanb,

    Could you try setting $Configuration['Garden']['ExternalUrlFormat'] to something like ""?

    I believe the key lies in the externalUrl function in \library\core\functions.general.php, that contains this snippet:

        function externalUrl($path) {
            $urlFormat = c('Garden.ExternalUrlFormat');
            if ($urlFormat && !isUrl($path)) {
                $result = sprintf($urlFormat, ltrim($path, '/'));
            } elseif (stringBeginsWith($path, '//')) {
                $result = Gdn::request()->scheme().':'.$path;
            } else {
                $result = Url($path, true);
            return $result;
  • Hi,

    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.

  • x00x00 MVP

    You don't change the link.

    The best approach is to force embedding, which you can do in the the the embed settings in the dashboard. That way the page will redirect in the bowser to the embed. url.

    grep is your friend.

  • Thanks for the reply.
    I made the changes as you mentioned. Basically, it's not setting the exact embed forum link in the notification email but it redirects you to the embed forum page upon click on it.

    Is there any way we can also set embed forum URL instead vanilla installation link in all notification emails?

Sign In or Register to comment.