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
There, OCA.Viewer.file is used to determine the basename of the file being edited (here the directory's Readme.md). However OCA.Viwer.file is empty we land here coming from the "richworkspace" mode.
I have submitted a pull-request #2163 to work around, however, its a little bit of a hack maybe.
The text was updated successfully, but these errors were encountered:
Describe the bug
File links generated while operating in "richworkspace"-mode are missing the base-directory of the editied 'Readme.md`
To Reproduce
Steps to reproduce the behavior:
Readme.md
thereExpected behavior
Open the linked file ;)
Screenshots
Well, just to demonstrate what this "richworkspace" means, it is the displayed Readme.md at the top of the folder-view of the files-app:
Text app version: (see Nextcloud apps page)
Git-branch stable23. But the bug is also present in the master branch.
Explanation
When insert links to files with the "Menububble" we finally land here:
text/src/components/MenuBubble.vue
Line 154 in 51e0592
As it shows, the called
command()
finally ends inhelpers/links.js
text/src/helpers/links.js
Lines 61 to 63 in 51e0592
There,
OCA.Viewer.file
is used to determine the basename of the file being edited (here the directory'sReadme.md
). HoweverOCA.Viwer.file
is empty we land here coming from the "richworkspace" mode.I have submitted a pull-request #2163 to work around, however, its a little bit of a hack maybe.
The text was updated successfully, but these errors were encountered: