Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change backend route from /locomotive to anything else in 2.0.0 #336

Closed
designhunger opened this issue Apr 5, 2012 · 4 comments
Closed
Assignees
Milestone

Comments

@designhunger
Copy link
Contributor

Hi,

it is not possible to alter the routes for the engine from /locmotive to /admin f.ex. in routes.rb. If done so, you can't upload files anymore and you are not able to save pages and contents.
Would be great if this can be fixed! My customers are used to access their backend via /admin

Thanks!
Bernd

@mariovisic
Copy link
Member

Hi Bernd

You can set the URL for the admin interface when defining your routes, to use /admin then just set it like so:

mount Locomotive::Engine => '/admin', :as => 'locomotive'

@mariovisic
Copy link
Member

Actually, I can see why this is happening, due to the hard coded routes in the JS for AJAX requests. We'll need to fix this.

@ghost ghost assigned mariovisic Apr 6, 2012
mariovisic added a commit that referenced this issue Apr 6, 2012
@mariovisic
Copy link
Member

happy Easter!

Pull the lastest master to get the fix.

@designhunger
Copy link
Contributor Author

Thanks!! I've been on vacations so I didn't see it before...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants