-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Insert Link: clicking on same-page links reloads the editor #10117
Comments
Currently still an issue. |
Verified that this is still an issue 👍 internallinks.mp4 |
While implementing this, we may also want to keep in mind allowing browser link copy -> pasting a link on text, retaining the right link pastelink.mp4See #28115 (comment) |
Hi all, I think the current expected behavior described above is great but I have another thoughts. There is an external link icon which indicates it would open the new tab after clicking. Therefore, as a user, I might expect that when I clicked it, it would open the new tab and scroll to anchor. However, the page should not be edit mode because I want to test the behavior in other people's point rather than mine. In short, the relative anchor link should have the same behavior with absolute link in this demo video #10117 (comment) Does it make sense? |
still an issue on gutenberg 13.0.0. |
Yes, still an issue. Screen.Recording.2022-07-08.at.07.43.21.movI wonder if it would be better (and certainly easier?) to prevent actions when clicking on a link that starts with |
I wonder why it is labeling local links -non anchor links to existing content on the same install -as external 🤔 |
I took a quick look at this and I wasn't sure what the ideal behavior is.
Eg very roughly something like the following
I wonder if it makes the most sense to simply do nothing when we click on this type of anchor link. Let me know if folks think of other options or ideas. |
Yes "do nothing" was implemented in #42259. |
Going to close this as the "do nothing" option above seems the most sensible and has been implemented. |
Describe the bug
Internal links should just make the selection jump to the link's target. Instead they make the page reload.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the caret should jump to the headline with anchor value "myanchor" and the page should not reload.
The text was updated successfully, but these errors were encountered: