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 ?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | nginx-server-cleanurl-1934606-1.patch | 1.59 KB | flocondetoile |
Comments
Comment #1
flocondetoilethe patch
Comment #2
perusio commentedYour patch goes in the right direction. Why in heaven's name does it need a `index:php` in the URI?
Comment #3
jelle_sFixed in latest dev (with clean url detection)