• Hi,

    I get the following bug on slug reencoded by the navigator into the hash :

    context : Google chrome Version 42.0.2311.90 m

    I have the title in French :
    “Les règles font elles l’”esprit de”, ou l’”esprit de” fabrique-t-il des règles qui lui correspondent
    <small>encore une histoire d’oeuf et de poule</small>[L]” (note : some html are supported in title)

    The default ID of article becomes :
    les-rgles-font-elles-l8221esprit-de8221-ou-l8221esprit-de8221-fabrique-t-il-des-rgles-qui-lui-correspondentencore-une-histoire-d8217oeuf-et-de-poulel

    The table of content (my version adding a filter on id with the chain “tocid-” before) using the id defines an anchor
    href="#tocid-les-rgles-font-elles-l8221esprit-de8221-ou-l8221esprit-de8221-fabrique-t-il-des-rgles-qui-lui-correspondentencore-une-histoire-d8217oeuf-et-de-poulel

    Which is supposed have the target :
    id="tocid-les-rgles-font-elles-l8221esprit-de8221-ou-l8221esprit-de8221-fabrique-t-il-des-rgles-qui-lui-correspondentencore-une-histoire-d8217oeuf-et-de-poulel"

    But the hash generated by the navigator become :
    ...#tocid-les-rgles-font-elles-l82178221esprit-de8221-ou-l82178221esprit-de8221-fabrique-t-il-des-rgles-qui-lui-correspondentencore-une-histoire-d8217oeuf-et-de-poulel

    Which will never reach the fragment with the id.

    It is possible to change the value for the particular case, but it doesn’t solves the problem and I can get others such curious reencode of the URI (or url) not compatible with the WP.

    How the slug of the article which contains reencode with unicode value can be reencoded again by the navigator to create the bug ?

    Best regards

    Trebly

    Note :
    Unicode Character ‘RIGHT DOUBLE QUOTATION MARK’ (U+201D) is “8821”
    Unicode Character ‘RIGHT SINGLE QUOTATION MARK’ (U+2019) is “8217”

  • The topic ‘a hash reencoding slug which crashes "table of content" : which bug ?’ is closed to new replies.