text
text copied to clipboard
linking local files without ?fileID does not work
Describe the bug
Linking to local files without the file ID does not work. EG, if I where to use gedit to edit the markdown file and reupload it to nextcloud, this:
[hurp](durp.md?fileId=123)
would work, but this:
[hurp](durp.md)
does not work. this is a problem since I do a lot of local editing of files with markor when I don't have a connection to the server.
To Reproduce Steps to reproduce the behavior:
- highlight text in the nextcloud editer
- create a link to local file in the same directory
- highlight text again
- click "edit link",
- remove
?fileId=123
part of url - click link again, a new tab opens but its to "https://durp.md/'.
- download file, edit in gedit
- see that raw text is wrong. fix so its
[hurp](durp.md)
- reupload
- go to nextcloud. try to click link. opens new tab to blank page.
Expected behavior click link, new tab opens to correct file.
Client details:
- OS: debian 11
- Browser: firefox esr
- Nextcloud version: 23.0.4 - 23.0.4.1
- Device: desktop
Server details
Text app version: (3.4.1
Operating system:
debian 11
Web server: Apache/2.4.53 (Debian) (fpm-fcgi) Database: mysql 10.5.15 PHP version: 8 Nextcloud version: (see Nextcloud admin page) 23.0.4 - 23.0.4.1
Logs
Nextcloud log (data/nextcloud.log)
to diffuclt to redact
Browser log
dont know how to find
Related to:
- #2378
- #2339
- #1900
Confirmed.
I'm happy to see this marked as high priority.
I'd like to add a user story of just how vital this is.
I've been championing a switch to Nextcloud at our studio. I thought I had tested markdown capabilities by checking that a document rendered properly, including relative image embeds. Since this worked perfectly, it did not occur to me that normal links could somehow not work.
Right now we're trying to decide whether to give up our migration or go through all our links to insert file ids and ruin the workflow of those that use external editors.
I believe this feature is greatly needed, and hope the team can find time to address it quickly.
Dear @marningmol and @mstyp did you consider to try out the Nextcloud Collectives app? There, links to pages without fileId
parameter are supposed to work.
No, the collectives app does not properly open links without without fileId
. Have you tried it yourself? Select some text in collectives, click the "insert link" button, select "link to local file or foulder", pick the file you want to link to (say, test.md in the same directory). Click it and see that it works
But then go to edit the link (select text, then look up to "update link") and then remove the ?fileId=12345
. When you try to click the link then, it thinks you are trying to go to https://test.md lol.
Even if it did work, I'm not going to stick all my documents into collectives. Its just not the right tool for that.
Related: #2136