-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. #2163
Conversation
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
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 <himself@claus-justus-heine.de>
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.