question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing the /Umbraco/ folder to /something-secure/ looses the styling in the back-office

See original GitHub issue

In 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

image

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/

  1. Rename the folder /Umbraco/ to /something-secure/
  2. 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stevemegsoncommented, Dec 24, 2019

The problem is that we have two ways to access the name of the /Umbraco/ directory.

  • GlobalSettings.Path reads the Umbraco.Core.Path value from appSettings
  • SystemDirectories.Umbraco is still looking for umbracoPath.

As a temporary workaround, adding the extra key to appSettings should work:

<add key="umbracoPath" value="~/something-secure" />
0reactions
nul800sebastiaancommented, Jan 29, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

when i change the umbtaco folder i lose my styling
If I "leave" the Umbraco folder (so copy to the new folder, not just rename), everything works fine, as the CSS files still...
Read more >
Rename /umbraco possible? : r/UmbracoCMS
I can see that a recent umbraco dev bug was fixed where "Changing the /Umbraco/ folder to /something-secure/ looses the styling in the...
Read more >
How to Customize Umbraco 8 Backoffice Colors - Liquid
First, create a new folder (BackofficeStyles in our case) under App_Plugins. Then add backoffice.css and package.manifest files. Folders in ...
Read more >
Template is not visible in backoffice, when created in VS
You can do it in 2 ways: Create your views in umbraco backend. Then go to visual studio and click the "Show All...
Read more >
Untitled
Changing the /Umbraco / folder to /something-secure/ looses the … Web5 de out. de 2010 · 1. When installing an Umbraco site, I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found