Changing the /Umbraco/ folder to /something-secure/ looses the styling in the back-office
See original GitHub issueIn 8.4.0, when I rename the /Umbraco/ folder to /something-secure/, (and make the changes in web.config) I lose all the styling in the back-office. Copying the folder works, as the referenced /Umbraco/ folder is still there.
Umbraco version
I am seeing this issue on Umbraco version: 8.4.0
Reproduction
Bug summary
When renaming the /Umbraco/ directory to something else, e.g. /something-secure/, and make the changes in the web.config file, the back-office still requires the /Umbraco/ directory to be present. E.g. for
<link href="/umbraco/assets/css/umbraco.css?cdv=666268331" type="text/css" rel="stylesheet">
Specifics
This occurs in all back-office pages. E.g. https://nysite.localtest.me/something-secure/#/content/content/edit/2295 I am using 8.4.0 - occurs on all browsers
Steps to reproduce
[I installed v8.2.0, upgraded to 8.3.0, then 8.4.0] Do exactly as described in https://our.umbraco.com/documentation/Reference/Security/Security-hardening/
- Rename the folder /Umbraco/ to /something-secure/
- Update the web.config folder to
<add key="Umbraco.Core.ReservedUrls" value="~/something-secure" />
<add key="Umbraco.Core.ReservedPaths" value="~/something-secure" />
<add key="Umbraco.Core.Path" value="~/something-secure" />
Expected result
All references in the html file od the back-office go to the /something-secure/ folder e.g.
<link href="/something-secure/assets/css/umbraco.css?cdv=666268331" type="text/css" rel="stylesheet">
Actual result
The first 3 href references still fo to the /umbraco/ folder e.g.
<link href="/umbraco/assets/css/umbraco.css?cdv=666268331" type="text/css" rel="stylesheet">
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
The problem is that we have two ways to access the name of the /Umbraco/ directory.
GlobalSettings.Path
reads theUmbraco.Core.Path
value from appSettingsSystemDirectories.Umbraco
is still looking forumbracoPath
.As a temporary workaround, adding the extra key to appSettings should work:
Fixed in https://github.com/umbraco/Umbraco-CMS/pull/7440