Content
View differences
Updated by Oliver Günther over 2 years ago
Tracking issue / feature at CKEditor: https://github.com/ckeditor/ckeditor5/issues/14304
### (Original bug report)
### Steps to reproduce
1. e.g. create a new comment under activities to start the editor
2. press Ctrl>+<K> or click on the link icon to open a popup for a link
3. type in "profile://server.domain/db(profile)/Documents(12345678)"
4. save the link and the comment
5. after that the link is visible and clickable but will not open
### What is the buggy behavior?
We are using some custom url handlers on our windows clients to link items on web pages to a proprietary ERP software.
E.g. we have the handler "profile" which will open the requested document in the ERP software.
If I create the link like in the steps above and show the source of openproject page I see:
```text
<a rel="noopener noreferrer" class="op-uc-link">profile://server.domain/db(profile)/Documents(12345678)</a>
```
This link will not open by the web browser.
### What is the expected behavior?
The correct link should use the href attribut in the a-tag:
```text
<a href="profile://server.domain/db(profile)/Documents(12345678)" rel="noopener noreferrer" class="op-uc-link">profile://server.domain/db(profile)/Documents(12345678)</a>
```
It works when I use standard url handler e.g. "https://openproject.org" in the link target.
### Screenshots and other files
_If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section._
### Environment information
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [x] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
13.0.1
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_english, german_
### (Original bug report)
### Steps to reproduce
1. e.g. create a new comment under activities to start the editor
2. press Ctrl>+<K> or click on the link icon to open a popup for a link
3. type in "profile://server.domain/db(profile)/Documents(12345678)"
4. save the link and the comment
5. after that the link is visible and clickable but will not open
### What is the buggy behavior?
We are using some custom url handlers on our windows clients to link items on web pages to a proprietary ERP software.
E.g. we have the handler "profile" which will open the requested document in the ERP software.
If I create the link like in the steps above and show the source of openproject page I see:
```text
<a rel="noopener noreferrer" class="op-uc-link">profile://server.domain/db(profile)/Documents(12345678)</a>
```
This link will not open by the web browser.
### What is the expected behavior?
The correct link should use the href attribut in the a-tag:
```text
<a href="profile://server.domain/db(profile)/Documents(12345678)" rel="noopener noreferrer" class="op-uc-link">profile://server.domain/db(profile)/Documents(12345678)</a>
```
It works when I use standard url handler e.g. "https://openproject.org" in the link target.
### Screenshots and other files
_If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section._
### Environment information
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [x] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
13.0.1
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_english, german_