About links inside a post we're creating
I lost countless posts before posting them after clicking accidentally on a link inside them (https or a @). There's no warning that the page is about to switch and we can't get the post back by clicking on the back tab/arrow.
Here are a few suggestions (in no particular order) to fix that.
1. Add a βLeave Pageβ Warning
- What: Show a custom in-app confirmation (e.g., a modal) if a user clicks a link in their draft.
- Why: Gives an extra layer of protection without relying only on the browser.
2. Auto-save Drafts
- What: Automatically save the post in local storage or on the server as the user types.
- Why: If the page reloads or the user clicks away, the text can be restored when they come back.
3. Disable Clickable Links in Edit Mode
- What: While the user is composing, make links non-clickable (e.g., render them as plain text or require a Ctrl+click to open).
- Why: Prevents accidental navigation during writing.
4. Open Links in a New Tab by Default
- What: Force all links in the editor to open in a new tab or window.
- Why: Clicking a link wonβt interrupt the writing session.
I completely agree! I support that! There have been times when I simply decided not to repeat the writing after such an accidental click on a link in the text of a post, as this was not the first time it had happened.
Hello Laurent Fa,Β a video recording of the issue would be helpful. I tried to recreate the issue, pasted a link in a 'Create Post' input field, and added it. I clicked the link, but it opens in a new tab.
Tawsif Ahmed RiyadΒ I found the cause: the problem is when you paste an internal link in a post or public comment you are creating (not posted yet). There might be other situations where it occurs too.
The problem also occurs when I click a @ from another comment while I'm creating/editing a comment.
If I can find my temporary post when I come back to the page using the top-left arrow of my browser or the keyboard shortcut, it would be great.
Laurent Fa, noted, thanks for reporting.