Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Armitage 505 posts 2073 karma points
    Jun 12, 2021 @ 13:33
    David Armitage
    0

    Umbraco 9 ReservedPaths

    Hey All,

    Another Umbraco 9 Question.

    In Umbraco 8 we had the ability to reserve a path through the web.config.

    Eg.

    <add key="Umbraco.Core.ReservedPaths" value="~/some-path-here"/>
    

    How do we di this with Umbraco 9? I assume there is some setting that needs adding to the appsettings.config file

    Thanks in advance.

    Kind Regards

    David

  • David Armitage 505 posts 2073 karma points
    Jun 12, 2021 @ 13:50
    David Armitage
    102

    I figured this out by a little trial and error.

    Here is is for anyone interested

     "Global": {
            "ReservedPaths": "~/some-path-here",
            "Id": "cf1744bf-0998-413d-8a97-7a704604e123"
          }
    

    enter image description here

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Jun 12, 2021 @ 15:06
    Huw Reddick
    0

    Thanks David, that is good to know.

  • Rutger Buijzen 3 posts 101 karma points c-trib
    Jul 23, 2022 @ 08:55
    Rutger Buijzen
    0

    Should this also work in v10? Tried configuring this in v10, but doesn't seem to work. Do I need to do anything else before this works? tx

  • Rutger Buijzen 3 posts 101 karma points c-trib
    Jul 26, 2022 @ 08:15
    Rutger Buijzen
    2

    Note to self: place files in wwwroot not .net core project root :)

Please Sign in or register to post replies

Write your reply to:

Draft