Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Clicking on the "Browse Server" in Linkit's dialog opens up basePath + 'imce' which doesn't work without clean URLs enabled.
basePath + 'index.php?q=imce' would be a safer choice.
Comment | File | Size | Author |
---|---|---|---|
#5 | linkit.1027500.D6.patch | 1.44 KB | anon |
#5 | linkit.1027500.D7.patch | 1.44 KB | anon |
Comments
Comment #1
anonI disabled the "Enable clean URLs" and tested this.
Works fine for me.
Comment #2
mtyaka CreditAttribution: mtyaka commentedI'm a total Drupal (and PHP) noob and probably got the terminology wrong. What I meant by "clean URLs not enabled" is that the server is not set up to rewrite incoming '/path' requests to '/index.php?q=path'.
If http://localhost/imce works for you, you must have a rewrite rule kicking in at some level. In my setup, where I don't have a rewrite rule enabled, http://localhost/imce doesn't work, while http://localhost/?q=imce or http://localhost/index.php?q=imce do work.
Comment #3
anonComment #4
anonThis was a tricky one.
Without clean urls
/?q=imce?app=Linkit|url@edit-link--2
With clean urls
/imce?app=Linkit|url@edit-link--2
And
url('imce');
just give us /?q=imce and /imce then we have to add a ? OR a & depending on thats the URL functions returns.Hmm I will look into this more tomorrow.
Comment #5
anonCommitted to both 6.X and 7.x
Thanks for reporting.