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

More
7 years 1 month ago - 7 years 1 month ago #69730 by tevez15
Hi,

I found this on the code:
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:
Code:
$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
Last edit: 7 years 1 month ago by ggppdk.

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

More
7 years 1 month ago - 7 years 1 month 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...
Last edit: 7 years 1 month ago by ggppdk.

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

More
7 years 1 month 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...

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

More
7 years 1 month ago - 7 years 1 month ago #69744 by ggppdk
Hello

Please test fix by using "Install from URL" in Joomla extension manager
github.com/FLEXIcontent/flexicontent-cck...e/3.2.1.x-stable.zip


-- 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...
Last edit: 7 years 1 month ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.571 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline