Copied to clipboard

Flag this post as spam?

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


  • Ras 29 posts 189 karma points
    Jun 29, 2022 @ 06:53
    Ras
    0

    Send for Publishing email throws errors if user has Swedish culture setting

    Discovered an interesting bug when using the send for publish/approval function. If you're using the english culture in umbraco, you get a summary (which doesn't even say what changed) and an "edit" button that simply directs you to the page that has been edited, in edit mode.

    However, if the user is using swedish culture in umbraco they will get the same email except with four buttons. Edit, delete, publish, edit (but in swedish). None of these buttons work. They all lead to a umbraco/actions/editContent.aspx (publish,delete with same url) but these pages give a 404.

    I don't want to force my users to use english but I can't find quite where to correct these urls?

  • Johan Runsten 21 posts 217 karma points c-trib
    Jun 30, 2022 @ 06:11
    Johan Runsten
    100

    Hi!

    Are these the strings that can be found in the email that are wrong? https://github.com/umbraco/Umbraco-CMS/blob/2f4feb925a66781529eeea779c409b3d73ea7fdd/src/Umbraco.Core/EmbeddedResources/Lang/sv.xml#L592-L598

    If so, you can override them by creating a file in /config/lang/sv-SE.user.xml with the same keys and correct the links.

  • Ras 29 posts 189 karma points
    Jun 30, 2022 @ 09:25
    Ras
    0

    Hi Johan,

    Those seem to be the correct strings, I've gone ahead and created the file as you said and it now works, thank you!

    For anyone else who might have this problem, the old url in the xml looks like:

    href="http://%4%/actions/editContent.aspx?id=%5%"
    

    This needs to be changed to this to work:

    href="http://%4%#/content/content/edit/%5%"
    
  • Johan Runsten 21 posts 217 karma points c-trib
    Jun 30, 2022 @ 09:51
    Johan Runsten
    1

    Hi!

    Great, if you feel up for it you can create a pull request with the changes so that it ships out to everyone :)

Please Sign in or register to post replies

Write your reply to:

Draft