Copied to clipboard

Flag this post as spam?

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


  • Guruprakash 2 posts 72 karma points
    Apr 06, 2018 @ 06:43
    Guruprakash
    0

    Rendering back-slash while adding macro/partials on umbraco cms content

    I'm facing an issue on umbraco cms, while i'm adding macros to the content of pages its adding a back-slash on rendering the pages. enter image description here My partial script is:

    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    
    
    <script>
       $(document).ready(function() {
           if ($("html").attr("lang") == "ar-AE") {
              $(".globe").attr('href', '/about-us/');
           } else {
               $(".globe").attr('href', '/من-نحن/');
           }
       });
     </script>
    

    on frontend :

    enter image description here

    Please suggest how to remove those slash.

  • Michaël Vanbrabandt 863 posts 3343 karma points c-trib
    Apr 06, 2018 @ 07:06
    Michaël Vanbrabandt
    0

    Hi Guruprakash,

    I think it doesn't have to do with your script of your partial macro.

    Could you check the other views of the html source and search for the character \ to see if this is placed accidentially.

    Hope this helps.

    /Michaël

  • Michaël Vanbrabandt 863 posts 3343 karma points c-trib
    Apr 07, 2018 @ 08:11
    Michaël Vanbrabandt
    0

    Hi Guruprakash,

    any news on this issue? Did you managed to solve it? Could you share it with the community?

    Have a nice day!

    /Michaël

  • 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