You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a subtitle has an accent, any link to it won't work. Removing the accent, the link starts working.
If I write the URL manually to the browser's navigation bar it works even with the accent.
To Reproduce
In the Markdown editor add the following title and link:
# Tést
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
...
[Tést](#tést)
Save the page
Expected behavior
The link should move the page to the correct heading.
Host Info (please complete the following information):
OS: Ubuntu 16.04, Docker
Wiki.js version: 2.3.81
Database engine: sqlite
The text was updated successfully, but these errors were encountered:
This issue is related to #1006 . The $vuetify.goTo() function expects a UTF-8 ev.target.hash . However, the markdown CRM URIencodes the ev.target.hash (this is great for browser compatibility, not so much for Vuetify)
Adding decodeURIComponent() to ev.target.hash fixes compatibility with Vuetify.
This fixes GitHub issue #1873
Even after this merge, this bug is occurring with me.
I tested with 4 browsers: Firefox Mozilla and Opera functions correctly, but Microsoft Edge and Google Chrome maintains the bug, and the page don't scroll down to headers with accents.
jionggyu
pushed a commit
to jionggyu/wiki-2.5.302-patch
that referenced
this issue
Jul 9, 2024
This issue is related to requarks#1006 . The $vuetify.goTo() function expects a UTF-8 ev.target.hash . However, the markdown CRM URIencodes the ev.target.hash (this is great for browser compatibility, not so much for Vuetify)
Adding decodeURIComponent() to ev.target.hash fixes compatibility with Vuetify.
This fixes GitHub issue requarks#1873
Describe the bug
If a subtitle has an accent, any link to it won't work. Removing the accent, the link starts working.
If I write the URL manually to the browser's navigation bar it works even with the accent.
To Reproduce
In the Markdown editor add the following title and link:
# Tést
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
A lot of text
...
[Tést](#tést)
Save the page
Expected behavior
The link should move the page to the correct heading.
Host Info (please complete the following information):
The text was updated successfully, but these errors were encountered: