In WYSIWYG, because the form is call with the path index.php?q=syntaxhighlighter_insert_wysiwyg/insert/form-idxxx, i can't get him because my site is powered by nginx with the perusio's configuration, wich prevent direct attempt to access PHP files.

Clean url are enabled.

Here a quick fix about this issue
In the file syntaxhighlighter_insert_wysiwyg.js change the line
var aurl = Drupal.settings.basePath + 'index.php?q=syntaxhighlighter_insert_wysiwyg/insert/' + form_id;

with this
var aurl = Drupal.settings.basePath + 'syntaxhighlighter_insert_wysiwyg/insert/' + form_id;

Maybe is there a more cleaner solution ? As detect if clean url are enabled and then choose the good path to call the form ?

Comments

flocondetoile’s picture

StatusFileSize
new1.59 KB

the patch

perusio’s picture

Your patch goes in the right direction. Why in heaven's name does it need a `index:php` in the URI?

jelle_s’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs review » Fixed

Fixed in latest dev (with clean url detection)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.