- Issue created by @robbt
- πΊπΈUnited States robbt
It feels like using the Fold to Ascii javascript library before stripping out non-ascii characters would be the best thing to do. I'll try and work on a PR that does just that.
I have an accordion with the title EnEspanol that includes a tilde n as to be correct- when creating the anchor link this gets stripped out rather than replaced by an n. We are trying to provide a link to a drop-down containing spanish documents and it should be /URL#enespanol and instead it is URL/#enespaol - which is less than ideal especially for sharing as a URL with people.
Create an CKEditor accordion block with an accented character for the title, enable Open tabs with hash using anchor links or on page load - look at the resulting anchor link.
In accordion.frontend.js the tabText around 159 should have accented characters replaced with the best ASCII code character vs. stripping them completely since according to https://www.rfc-editor.org/rfc/rfc3986#section-2 - only ASCII characters should be included in URI and I assume this includes anchor links.
Active
2.2
Code
It feels like using the Fold to Ascii javascript library before stripping out non-ascii characters would be the best thing to do. I'll try and work on a PR that does just that.