File plugin - Method View - Bug when SEF disabled

More
9 years 3 months ago #59144 by yopyop001
Hi,

When SEF is disabled, if you try to use the 'View' function for the file plugin, an erroc occured (the default FC menu item is displaying on a fancybox instead of the file)

The link generated is :
/index.php?option=com_flexicontent&id=1&cid=1&fid=15&task=download?method=view

It seems to be because of the second "?"

The link is generated in this file :
plugins/flexicontent_fields/file/tmpl/value_InlineBoxes.php
line 236 + line 302

but i'm not sure about the best way to fix the issue.

Best regards.

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

More
9 years 3 months ago #59159 by ggppdk
Hello

thanks for report,

we will include fix in v3.0.10 release on end of week

will commit this fix (2 places inside the file)
replacing:
Code:
.'?method=view"
with:
Code:
.(strpos($dl_link,'?')!==false ? '&' : '?').'method=view

the above is better than only checking SEF, because the link may include extra URL variables even if SEF is ON

about v3.0.10-rc:
github.com/FLEXIcontent/flexicontent-cck/releases
www.flexicontent.org/forum/21-troublesho...only-the-labels.html


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.369 seconds
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
Save