Custom /admin route #6491
Replies: 1 comment 1 reply
|
The new admin (solidus_admin) is still a work in progress and in investigating I found some issues with mounting it at a different path:
There's definitely some work that could be done support a new mountpoint, but I don't know if that's necessarily a priority right now because using SolidusAdmin must be in conjunction with solidus_backend to get complete functionality currently. When we get to the point that you could run only SolidusAdmin, fixing these issues becomes much more of a priority. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
With the current overlap between solidus_backend and solidus_admin
it seems very difficult to reliably remap the entire asset to a different folder
For example (in 4.4.6) my understanding is it should be a simple matter in routes.rb
mount SolidusAdmin::Engine, at: '/_foobar', constraints...prior to mount Spree::Core::Engine, at: '..whatever..'
This does not seem to work correctly. 'admin' still opens normally and '/_foobar' is 404. Also after clear-clobber, contradicting route table output when checked from command prompt:
We are currently option testing and would like admin relocated (rather than mirrored/aliased) to custom loc to avoid exposing legacy scanner-targeted default paths in production routing.
Any suggestions?
All reactions