1
0
Fork 0
mirror of https://github.com/requarks/wiki.git synced 2026-03-02 22:06:55 -05:00

Markdown editor automatically selecting page when adding a new link #2095

Closed
opened 2026-02-20 18:28:08 -05:00 by deekerman · 1 comment
Owner

Originally created by @SaasamMorgan on GitHub (Sep 28, 2020).

Originally assigned to: @NGPixel on GitHub.

Describe the bug
When adding a link on a page using the markdown editor, if you have a page which short description contains an open parenthesis "(" This will automatically select that page for any link you try to add making for a poor user experience.
This bug will only occur if there is one page which short description contains an open parenthesis. Adding another page which short description contains the same will remove the bug as the page selector will appear. If you then select a page from the list it will remove the open parenthesis.

To Reproduce
Steps to reproduce the behavior:

  1. Add a page using the markdown editor. Make sure the Short Description contains an Open Parenthesis "(". Save Page.
  2. Go to an existing page using the markdown editor (can be same page which we just created).
  3. Add a new link my typing - [xyz](
  4. Once you type the open parenthesis this will remove the open parenthesis and add the URL of the page which contains this description. the editor would now look something like [xyz]/path/to/page. when you then try to add another open parenthesis after the closing square brace to create a full link it will then add the /path/to/page again. This causes the page to look like [xyz]/path/to/page/path/to/page

Expected behavior
I would expect the page selector to appear with one item which is the page which contains the search values. Or not appear at all until another character is typed after the first open parenthesis.

Screenshots
https://imgur.com/a/Tjse15t

Host Info (please complete the following information):

  • OS: Ubuntu 20.04
  • Wiki.js version: 2.5.144
  • Database engine: postgresql 12.4
  • Node.JS: 14.4.0
Originally created by @SaasamMorgan on GitHub (Sep 28, 2020). Originally assigned to: @NGPixel on GitHub. **Describe the bug** When adding a link on a page using the markdown editor, if you have a page which short description contains an open parenthesis "(" This will automatically select that page for any link you try to add making for a poor user experience. This bug will only occur if there is one page which short description contains an open parenthesis. Adding another page which short description contains the same will remove the bug as the page selector will appear. If you then select a page from the list it will remove the open parenthesis. **To Reproduce** Steps to reproduce the behavior: 1. Add a page using the markdown editor. Make sure the Short Description contains an Open Parenthesis "(". Save Page. 2. Go to an existing page using the markdown editor (can be same page which we just created). 3. Add a new link my typing - [xyz]( 4. Once you type the open parenthesis this will remove the open parenthesis and add the URL of the page which contains this description. the editor would now look something like [xyz]/path/to/page. when you then try to add another open parenthesis after the closing square brace to create a full link it will then add the /path/to/page again. This causes the page to look like [xyz]/path/to/page/path/to/page **Expected behavior** I would expect the page selector to appear with one item which is the page which contains the search values. Or not appear at all until another character is typed after the first open parenthesis. **Screenshots** https://imgur.com/a/Tjse15t **Host Info (please complete the following information):** - OS: Ubuntu 20.04 - Wiki.js version: 2.5.144 - Database engine: postgresql 12.4 - Node.JS: 14.4.0
deekerman 2026-02-20 18:28:08 -05:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@Igorgro commented on GitHub (Sep 29, 2020):

Duplicate of https://github.com/Requarks/wiki/issues/2062

@Igorgro commented on GitHub (Sep 29, 2020): Duplicate of https://github.com/Requarks/wiki/issues/2062
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wiki-requarks#2095
No description provided.