Weblink field - Opening in _self is ignored for relative addresses, _blank (new window) is forced

1 year 2 months ago - 1 year 2 months ago #69730 by tevez15
Hi,

I found this on the code:
$isInternal = JUri::isInternal($value['link']);

I'm using this option "Allow relative addresses ", width "Yes" or "User can select".
The problem is, isInternal, just return True or False, if the weblink is absolute.

I can't find in the array, the option "Allow relative Adress", so I cant use an IF to add the JURI::BASE.

My solution, with validation is:
$isInternal = JUri::isInternal(JURI::base().$value['link']);

Why this
The problem, if isInternal dont return any value, he force to open in a new window, and I select _self.

Thank you :D

Please Log in or Create an account to join the conversation.

1 year 2 months ago - 1 year 2 months ago #69737 by ggppdk
Hello

the title of your topic was different than your issue
as i understand by your description the issue is

you selected to open the relative address in _self

but instead the relative address is wrongly detected as "external" and thus _blank is forced ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

1 year 2 months ago #69738 by ggppdk
Hello

the code that you suggest will not work with absolute urls
it will break them

we need a more complex check
working on it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

1 year 2 months ago - 1 year 2 months ago #69744 by ggppdk


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.