Open links in new tab not working

AI-generated summary

Users are discussing an issue where the ‘open external links in a new tab’ preference fails to function as expected. lmel reported that despite selecting the option in preferences, embedded links still load within an iframe rather than opening a new tab, noting that anchor tags correctly include target="_blank". After sigurdur suggested refreshing the page, lmel discovered the setting defaults to ‘off’ for new users and asked if it could be changed to ‘on’ by default. iolo proposed a technical workaround involving the external_links_in_new_tab field, referencing a meta-discourse thread. Later, ajimix questioned why an admin setting appeared to apply only to guests and not registered users. cpradio clarified that the admin setting establishes a default for new registrations and does not retroactively update existing user profiles, correcting the misunderstanding about how the feature applies to different user types.

Hi,

I have selected ‘open external links in a new tab’ in preferences but it does not work.

When a link is embedded in a comment and I click on it, the link is loaded within the iframe - it does not open a new tab.

All of the anchor tags have target=“_blank” - but still they do not open in a new tab.

Can you help?

Thanks

Did you refresh (press F5) the page after you changed your preferences?

Just saw the setting in user preferences for" Open all external links in a new tab".

This is currently defaulted to unchecked/off for new users.

Is there a way we can default this setting to checked/on for new users?

This looks like the only solution I’ve found. It would have to be applied to the external_links_in_new_tab field instead.

Any news on this issue? It’s still there. It’s a bit strange that if you set a setting in your admin, it just applies for guests users and not for registered ones, registered users don’t have the option enabled on their profiles…

What? I think you have it backwards, it doesn’t and has never applied to guests. The admin setting simply lets you setup a default for new users who register. It will not update the existing setting for existing users.

1 Mi Piace