# UIBUILDER and URL case sensitivity

**URL:** https://discourse.nodered.org/t/uibuilder-and-url-case-sensitivity/81019
**Category:** General
**Tags:** uibuilder
**Created:** [4 September 2023 02:06 UTC](https://discourse.nodered.org/t/uibuilder-and-url-case-sensitivity/81019 "2023-09-04T02:06:26Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![annuello](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/annuello/32/62361_2.png) [@annuello](https://discourse.nodered.org/u/annuello)
#### Post date: [4 September 2023 22:22 UTC](https://discourse.nodered.org/t/uibuilder-and-url-case-sensitivity/81019/5 "2023-09-04T22:22:40Z")

</div>

> [@TotallyInformation](#):
>
> To make case-sensitive routing apply to Node-RED you could try adding `'case sensitive routing': true,` to the `httpServerOptions` in settings.js - however, I've not yet tested this and I don't know whether it will consistently work due to how ExpressJS works.

I gave this a try and it works, both with an initial http-in/-out pair as well as uibuilder URLs. (I don't use Dashboard.) With the above param set as described and a non-matching URL is requested, NodeRED/ExpressJS responds with "`Cannot GET /myNonMatchingCase`", which is the behaviour I was initially expecting/hoping for. 👍

So I guess the issue can be described as two different things:

- ExpressJS default values do not following the SHOULD recommendation of the W3C. Given that case-sensitivity is not a MUST, we probably can't technically call it a bug. However, there is already a parameter available to change this behaviour. I agree that this departure from the recommended behaviour should at least be documented somewhere in NodeRED, with the step needed to make it conform to the SHOULD behaviour.
- SocketIO does not tolerate non-matching case when ExpressJS is configured for case-insensitivity. Given the SHOULD re case sensitivity, SocketIO not obliged to handle the non-matching case.

Thank you for your quick investigation, pointing me to a workable solution, and raising the core issue with the NodeRED team.

Annuello.

---

_[View the full topic](https://discourse.nodered.org/t/uibuilder-and-url-case-sensitivity/81019)._
