Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • fabbau 18 posts 108 karma points
    Sep 24, 2020 @ 12:34
    fabbau
    0

    Email notification contains wrong "Edit" link

    Hi all,

    When receiving an notification email about some changes in the CMS, the "Edit" link in this email points to /localhost/umbraco/#/content/content/edit/xxxx instead of the root domain of the umbraco installation.

    The domain gets injected in this line of code <a href='http://%4%/#/content/content/edit/%5%' in the the en.xml file.

    Does anyone know how I can change the injected root domain?

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Oct 16, 2020 @ 15:56
    Simon Dingley
    0

    Sorry to jump on your issue here but I have a similar issue but on v7 which is causing issues since the URL added includes the port number and our servers are behind a load balancer so the links never work. I'd prefer not to hard-code them but think that might be possible as an interim measure by means of a custom language file (at least that it was I am going to try).

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Oct 16, 2020 @ 16:16
    Simon Dingley
    0

    In my case, it looks like this is an issue that will forever remain in v7 unless a custom build is deployed.

    https://github.com/umbraco/Umbraco-CMS/blob/9d995f5054d2d93a206f45c279c02dffbbcaf07a/src/umbraco.cms/businesslogic/translation/Translation.cs#L47

    var serverName = HttpContext.Current.Request.ServerVariables["SERVER_NAME"];
    var port = HttpContext.Current.Request.Url.Port;
    
    if (port != 80)
        serverName += ":" + port;
    
    serverName += IOHelper.ResolveUrl(SystemDirectories.Umbraco);
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies