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
Configure Nav links to be opened in a new tab #15919
Comments
Thanks for the issue, we will take it into consideration! Our team of engineers is busy working on many types of features, please give us time to get back to you. Feature requests that require more discussion may be closed. Read more about our feature request process on forem.dev. To our amazing contributors: issues labeled To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please ping @forem/oss. The OSS Community Manager or the engineers on OSS rotation will follow up. For full info on how to contribute, please check out our contributors guide. |
FWIW, as a user, I really dislike this. Replacing the current URL is the expected behavior of a hyperlink and all browsers have a shortcut for opening links in a new tab if the user so wishes. Managing tabs on my machine should be up to me, not the site admin, in 90% of cases |
@citizen428 That's a great post! I think we want this for multiple reasons:
There isn't going to be an answer that pleases all. I would also point out, as a user, my preference is the opposite of yours - I detest when links are open in my current tab, especially when cmd+click doesn't open up a new tab either (I think it has to do with some of the SPA implementation with frontend JS, if I am not mistaken). Just saying that preferences are highly subjective. |
Fair enough, I'm probably in the minority here. The only argument I have left are potential accessibility issues: https://codersblock.com/blog/external-links-new-tabs-and-accessibility/#accessibility-implications But I'm sure @aitchiss knows way more about this topic than I do. |
I agree we need to resolve accessibility issues this might cause here. I would love to hear what @aitchiss would suggest. As we manage general users' expectations with an icon attaching to the link, I wonder if there's something similar we can do to inform screen readers so that users won't feel disoriented. |
Hey all! Yes there are some accessibility implications to opening links in new tabs, and the most important thing is that we communicate to users that this is going to happen. "Best practice" tends to look like:
On a more general note, I think there are likely other places in the app currently where we're not doing these things for links that open in a new tab - something we could think about for the new |
We could also consider adding some guidance in the admin portal about using the 'open in a new tab' option sparingly, e.g. noting that it's best used for e.g. links to contextual help guides where a user might want both windows still open. For me personally, I tend to agree with @citizen428 - I know as a user how to open links in a new tab, so I'd rather the app didn't do it for me unless I'm on a page where I could accidentally lose form information. It makes sense to give admins the choice though, and we can just make sure we support making this as accessible as possible. |
This was actually a plan - we wanted to add an icon to indicate it's going to be open in new tab:
Good point! FWIW I don't have strong feelings about forcing new tab. I personally don't like it but I think it's slightly less bitter when it's communicated properly (with an icon, as @aitchiss suggested). And what @amywtlin mentioned: this has been requested by admins several times soooo 🤷♂️ . But I do like an idea of somehow educating admins to be conscious and careful when using this setting. |
@amywtlin we're tackling some low hanging fruit on the admin this week, hence I wanted to clarify what the way forward for this discussion is? Also seems to be a duplicate of https://github.com/forem/rfcs/issues/320, so I'm closing that RFC since there's been more discussion on this one. |
@Ridhwana Here's the conclusion: We'll allow admins to decide if they want their links to be opened in the current tab or in a new tab, with the visual indicators as shown in Pawel's comment (sorry I should have attached that image in the body to avoid confusion; it's in the Google doc) and the accessible guidance for screen readers as Suzanne suggested. |
Also, thanks for closing the duplicate issue! |
What
Currently, all navigation links open in the current tab where the user is, which sometimes isn't an ideal behavior. We are adding this flexibility, enabling admins to configure the where a navigation link will be opened in.
Options
Design
Please feel free to reach out to @anujbhavsar96 for support
See more here: https://docs.google.com/document/d/1tidFU5mR6vdTV1PMdAEUvLFKZHHqftwKTxo6YrVJHpc/edit#heading=h.lf99x9d1a3j5
The text was updated successfully, but these errors were encountered: