Skip to content

When editing documents, clicking links will open a new Markdown editor #845

@arnowelzel

Description

@arnowelzel

Describe the bug
When editing a document and clicking a link to another document in it to select the link, the link will open a new markdown editor for the document. This is very confusing.

To Reproduce
Steps to reproduce the behavior:

  1. Create two pages in a collective - page 1 and page 2.
  2. Go to page 1 and create a link to page 2 in that page.
  3. After you have created the link, click on it.
  4. Now page 2 will open in a new markdown editor which has nothing to do with collectives at all.

Expected behavior
Clicking links in edit mode will be ignored since it makes no sense at all to open a link while editing. One clicks a link to position the text cursor there but not to open it.

Screenshots

Page 1 with a link to page 2:

image

Now editing page 1:

image

And this happens, when you click the link while the edit mode is still active - page 2 will open in a markdown editor outside of collectives:

image

Client details:
Not relevant, happens with all tested clients (Windows, Linux, macOS, Chrome, Firefox, Safari).

Collectives app version: (see Nextcloud apps page)
2.7.0

Operating system:
Ubuntu 22.04

Web server:
Apache 2.4

Database:
MySQL

PHP version:
8.1

Nextcloud version: (see Nextcloud admin page)
27.0.2

Logs

Nextcloud log (data/nextcloud.log)

not relevant

Browser log

not relevant

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdiscuss

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions