Copied to clipboard

Flag this post as spam?

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


  • fabbau 17 posts 107 karma points
    28 days ago
    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 1414 posts 3291 karma points c-trib
    6 days ago
    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 1414 posts 3291 karma points c-trib
    6 days ago
    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);
    
Please Sign in or register to post replies

Write your reply to:

Draft