forked from AlchemyCMS/alchemy_cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not add leading slash to default admin path
Since 871e77e we allow to set a custom admin path (ie. `/backend` instead of `/admin`). The default is set to `/admin` and since the admin dashboard redirect rule from `/admin` to `/admin/dashboard` uses this value the redirect destination is a root path. This causes no problems, unless you mount Alchemy at some other path (`/cms` instead of just `/`). Because the redirect rule has a leading slash the Rails router does not take the mount path into account and redirects to `/admin/dashboard` instead of `/cms/admin/dashboard`. Closes AlchemyCMS#1244
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters