Copied to clipboard

Flag this post as spam?

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


  • Simon Eldevig 20 posts 151 karma points
    Feb 05, 2019 @ 13:38
    Simon Eldevig
    0

    Encoding of descriptions

    Hi,

    We are currently using SEO Checker 2.1.0 with Umbraco 7.10.4 and are experiencing some wierd encoding issues. The SEO Description is currently being HTML encoded while the SEO Title isn't.

    That is pretty easy to fix with decoding of the value, but it gets a bit more difficult when the Twitter Description is using the SEO Description as fallback since this results in a double encoding of the value.

    That makes it difficult to figure out how many times to decode, and it would be nice if none of the values were encoded when pulling them out in the Razor template using SEOChecker.Library.MetaData.Current.Description

    Looking forward to hear from you :-)

  • Richard Soeteman 3599 posts 10926 karma points MVP
    Feb 05, 2019 @ 13:45
    Richard Soeteman
    0

    Hi Simon,

    Indeed SEO Description is envrypted, Google likes that. Title not because that is also shown in the browser. I will make sure it gets decoded for Twitter as well.

    Best to use the following snippet by the way this generates all metadata at once.

    @{
        var meta = Model.Content.GetPropertyValue<SEOChecker.MVC.MetaData>("seoChecker");
    
    }
    @meta.AllTags
    

    Best,

    Richard

  • Simon Eldevig 20 posts 151 karma points
    Feb 05, 2019 @ 13:56
    Simon Eldevig
    0

    Hi Richard,

    Just to be sure.. Are you going to make sure that both desc and title are decoded for Twitter and Facebook?

  • Richard Soeteman 3599 posts 10926 karma points MVP
    Feb 05, 2019 @ 13:59
    Richard Soeteman
    100

    Yup but only for Twitter and Facebook. Google Description will be the same. When you use the API like mentioned above that will be automatically.

    If you want a hotfix please send an email to support@soetemansoftware.nl Best,

    Richard

  • Simon Eldevig 20 posts 151 karma points
    Feb 05, 2019 @ 14:00
    Simon Eldevig
    0

    That sounds great.

    We will just wait for the update of the package.

    Thank you very much :)

  • Richard Soeteman 3599 posts 10926 karma points MVP
    Feb 13, 2019 @ 10:18
    Richard Soeteman
    0

    Fixed in 2.2.3

Please Sign in or register to post replies

Write your reply to:

Draft