Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When setting up SignalR routes, you need to add the routes to ReservedPaths #4391

Closed
nul800sebastiaan opened this issue Sep 20, 2022 · 2 comments

Comments

@nul800sebastiaan
Copy link
Member

What type of issue is it? (Choose one - delete the others)

Amending existing docs

What article/section is this about?

ReservedPaths

Describe the issue

As I've just learned from umbraco/Umbraco-CMS#13005 (comment) - when you add a SignalR route, Umbraco will try to find the page and end up in either custom 404 handlers or execute Umbraco's default ContentFinderByConfigured404. This is unnecessary and gives quite a bit of overhead. Instead we should add the SignalR route to the ReservedPaths config, like so:


  "Umbraco": {
    "CMS": {
      "Global": {
        "ReservedPaths": "~/app_plugins/,~/install/,~/mini-profiler-resources/,~/umbraco/,~/umbraco/testhub/"
        }
      }
    }
  }

Note that you need to provide the default reserved paths (`~/app_plugins,~/install/` etc), else you'll run into the issue described in https://github.com/umbraco/Umbraco-CMS/issues/12965
@eshanrnh
Copy link
Contributor

Thanks, @nul800sebastiaan. We will add the info in the docs soon 🙂

@eshanrnh
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants