Coffee doesn't work when the Rename Admin Paths (https://www.drupal.org/project/rename_admin_paths) module is installed. It reports a 404 error for admin/coffee/result/TERM

Comments

pglatz created an issue.

andersi’s picture

I can also reproduce this issue. I have installed rename_admin_paths; changed the admin path and now receive this error message upon "Alt D".

"Could not load data, please refresh the page"

I have refreshed the page, performed a log out / log in cycle, cleared the cache and performed a logout / log in cycle again and still receive this error message.

Drupal Core: 7.5
Rename Admin Paths: 7.x-2.2
Coffee 7.x-2.2

Looking at the coffee.module file I can see that there are some 'hard coded' links to "admin/coffee/menu" rather than a variable that holds the admin path. I'm guessing that coffee isn't able to correctly point to the updated url for the admin path.

Anonymous’s picture

I can confirm that this bug is still present. The fix would probably be to generate the correct path to that route in PHP and pass it through drupalSettings so that the Ajax call be made correctly.