gregbell/active_admin — pull request #1173 by Swartz (2012-03-24 12:26:21+00:00)
Title: Force active_admin to honour subURI upon successful logout from admin

I have a rails app deployed in a subURI with mod_passenger.

The app resides at http://domain.tld/myapp/
Admin interface is at http://domain.tld/myapp/admin

When clicking the logout button, the process is successful but redirects to http://domain.tld**/admin**
But should be http://domain.tld/**myapp/admin**

The issue is in method **root_path** defined in /lib/active_admin/devise.rb on lines 36-42.
The redirect takes you to the default namespace without honouring the complete URI where the application resides.