Download & Extend

Clean URL is disabled, Bad URL for single page mode

Project:Flash Filter
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

With Clean URL disabled, when you check "Display small icon as link to Flash Movie object in a single page" in flash filter settings, the URL of the small icon is not valid.

http://myserver.com/flash_file/lettres_rebondissantes_3D.swf should be http://myserver.com?q=flash_file/lettres_rebondissantes_3D.swf

Comments

#1

here is the fix (sorry I don't have time to do a patch)

in function theme_flash_filter_as_link,

replace

$html .= '<form action="/flash_file/' . basename($filepath) . '" method="post" id="flash_link_icon_form" class="flash_link_icon_form' . ( $params['name'] ? '-' . $params['name'] : '' ) . '">' . $endl;

by
$html .= '<form action="' .  url('flash_file/' . basename($filepath)) .'" method="post" id="flash_link_icon_form" class="flash_link_icon_form' . ( $params['name'] ? '-' . $params['name'] : '' ) . '">' . $endl;

#2

Status:active» fixed

tnx, now fixed..

#3

Status:fixed» closed (fixed)