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.

CommentFileSizeAuthor
#5 linkit.1027500.D6.patch1.44 KBanon
#5 linkit.1027500.D7.patch1.44 KBanon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anon’s picture

Status: Active » Closed (works as designed)

I disabled the "Enable clean URLs" and tested this.
Works fine for me.

mtyaka’s picture

Status: Active » Closed (works as designed)

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

anon’s picture

Status: Closed (works as designed) » Active
anon’s picture

Status: Closed (works as designed) » Active

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

anon’s picture

Status: Active » Fixed
FileSize
1.44 KB
1.44 KB

Committed to both 6.X and 7.x

Thanks for reporting.

Status: Fixed » Closed (fixed)

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