Feature No Code Attached Yet
avatar Mike92115
Mike92115
29 Sep 2026

Could you please consider adding the Target option to the Custom URL field. I use custom fields to create a News Article list where the site owner is interviewed and link out to those News article/interviews. I want those to open in a new tab, I know I can do this with an override but for offsite links many of us want those links opened in a new tab, and it just seems like this should be an option on the URL so overrides are not required.

Thank you,
Mike

avatar Mike92115 Mike92115 - open - 29 Sep 2026
avatar Mike92115 Mike92115 - change - 29 Sep 2026
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 29 Sep 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Sep 2026
avatar SHAGNIK007
SHAGNIK007 - comment - 30 Sep 2026

Hi @Mike92115,

I can take this on and submit a Pull Request for the 6.1-dev branch! Adding a target option natively makes a lot of sense so users don't have to rely on template overrides just to open offsite links in a new tab[cite: 2].

Here is my proposed approach to implement this:

  • XML Configuration: Update the URL field's parameter XML file (located in plugins/fields/url/) to include a new target parameter. This will provide a dropdown in the backend with standard options like "Same Window (_self)" and "New Window (_blank)".
  • Frontend Layout: Modify the URL field's rendering template (plugins/fields/url/tmpl/url.php) to read this new parameter. If a target is configured, the code will inject the target="..." attribute directly into the generated <a> tag.
  • Language Strings: Add the necessary English (en-GB) language strings for the new labels and descriptions in the plugin's language files so it is ready for translation.

Let me know if this approach sounds good to the maintainers, and I'll get a PR drafted up!

avatar Mike92115
Mike92115 - comment - 30 Sep 2026

@SHAGNIK007 That sounds perfect to me.

Thank you very much!
Mike

avatar LadySolveig
LadySolveig - comment - 5 Oct 2026

Hey @Mike92115 , that sounds like a really useful improvement. To make sure the maintainers are aware of it as a feature request, I'm moving this over to the discussions section so it doesn't get lost and can be discussed. Feel free to continue the discussion there.

avatar LadySolveig LadySolveig - change - 5 Oct 2026
Labels Added: Feature
avatar LadySolveig LadySolveig - labeled - 5 Oct 2026
avatar LadySolveig LadySolveig - change - 5 Oct 2026
Status New ⇒ Closed
Closed_Date 0000-00-00 00:00:00 ⇒ 2026-10-05 17:17:15
Closed_By ⇒ LadySolveig
avatar LadySolveig LadySolveig - close - 5 Oct 2026

Add a Comment

Login with GitHub to post a comment