Work around OCA.Viewer.file not set when editing in richworkspace mode.#2163
Work around OCA.Viewer.file not set when editing in richworkspace mode.#2163rotdrop wants to merge 3 commits intonextcloud:masterfrom
Conversation
Signed-off-by: Claus-Justus Heine <[email protected]>
e56cb15 to
a1d6ed7
Compare
Introduce a global property OCA.Text.RichWorkspaceFilePath which is used in helpers/links.js if the Viewer-property OCA.Viewer.file is not available. This fixes the problem that opening linked files from the enriched workspace does not work, as OCA.Viewer.file is empty in this case. So somehow the base MD-file has to be to communicated to domHref() in links.js. Signed-off-by: Claus-Justus Heine <[email protected]>
|
The second commit removes the extra "context=BASEFILE.md" from the generated links which would modify the Readme.md markdown in an irritating manner. |
|
Hey @rotdrop, I think we could hand the |
|
Actually it would probably be better to get this fixed and backported first and clean it up after. Would be good to have a test for the broken behavior to make sure this fixes it and also to prevent it from braking during the refactor afterwards. |
Summary
See linked issue.