Repository navigation
Entry links - #2505
Merged
Merged
Entry links#2505
Conversation
Links only resolve if they carry a signature generated for an editor allowed to read the linked entry. Otherwise editors could reveal titles of entries they can not access by adding links with arbitrary entry ids.
Links always point to the real url of the linked entry, even if it is not published yet. Previews and the editor additionally receive a preview url and the publication state to let readers of previews notice that linked entries still need to be published.
Entries are rendered in the same shape as linked entries in the seed, including the signature that lets links to them resolve.
Entries that are not published yet or password protected are marked with a pill since links to them will not work for every reader.
Adds a panel for linking to other stories of the account. Entries are only fetched once the panel is selected to prevent loading the list of all stories whenever a link is created.
Only entries linked from content elements of the inserted fragment are added to prevent other links of the library from showing up in the entry state.
Prepares displaying link tooltips in previews. Only behavior is shared. Inline editing and commenting render their own tooltips to keep styles in their separate stylesheets.
Links point to the real url of linked entries. For entries that are not published yet or password protected, the tooltip offers opening their preview instead. It is part of the commenting extensions to prevent shipping it in published entries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
REDMINE-21135