Address Bar does not parse two different URLs correctly, if they only differ by uppercase/lowercase

Description of the issue:
It’s impossible to visit a URL if you’ve previously visited a different URL with the same alphanumeric combination, but they differ in uppercase/lowercase. It will force you to the previous URL.

How can this issue be reproduced?

  1. (Note the example provided uses shortened URLs, as it’s the only test case I have. Very condensed URL shorteners are much more likely to encounter this issue than typical URLs.)

  2. In Brave, copy and paste the following URL into the address bar: https://poeplanner.com/a/b1F - this page will display a tree with 33/152 nodes. (The URL redirects to https://poeplanner.com/atlas-tree/BAASACEAiRFM9eo1we7J_Y3qJ3VnYCfJcOOeqwD5564ZCn21Thui0MsXxSEXUFSHE33Br4_lAzAzxsn-2VypQ7VjZh_pZ9AoFAAfiwgAAAAAAAADAwAAAAAAAAAAAA==)

  3. In Brave, copy and paste the following URL into the address bar: https://poeplanner.com/a/b1f - this page will display a tree with 84/152 nodes. (The URL redirects to https://poeplanner.com/atlas-tree/BAASAFQATo2JEUz16jWdCeOQLJLB7m2I-OX9eoxBFFnJ_YiO-nSN6k_3Krt6LH2RCnsndf2oDkqINNoUZBvO-OqZZ2Anyc3HeKEUd3DjnqtdTzV6boQA-cSm565zQhkKfbXrX8SFCbtUdn9iThui0FvWsAjLF8UhgSSyui5nF1DEH1SHTJITfdEZwa-2aFsej-UDMDPGyf53FMJ22VypQ7VjZh_1wKDW6Wcj39AoFAAfiwgAAAAAAAADAwAAAAAAAAAAAA==)

  4. If you’re observant you’ll see the latter changes to https://poeplanner.com/a/b1F before the redirect. Regardless, both URLs will lead you to the 33/152 node page, despite them being completely different URLs (which should in turn redirect to completely different URLs on the server’s end).

Expected result:
Each URL should properly resolve its literal URL by upper/lowercase, not change it to a previously viewed URL with a different letter case.

Brave Version( check About Brave):
Version 1.78.94 Chromium: 136.0.7103.60 (Official Build) (64-bit)

Additional Information:

Clicking the links works correctly. It’s typing or pasting in the address bar where the issue occurs.

It’s important to understand this bug is unrelated to Autocomplete. It occurs whether or not “Show autocomplete suggestions in address bar” is enabled.

If you are confused and not convinced there’s a bug here, follow these steps:

1- Open another browser (i tested on Firefox).
2- Open the same 2 URLs as above, several times in several tabs:
3- You should see that they each lead to 2 completely different pages every time.
4- If that’s not the case for you and you are using a Chromium browser, this is likely a Chromium bug, not a Brave bug…

In testing this I noticed this bug also interferes with Brave’s Cut/Copy commands in a similar way. If you Cut or Copy a URL in the address bar when you’ve already visited the same URL with a different case, it will literally put the previous version into the Clipboard, not the actual address you Cut/Copy.

You can test this with the same URLs above.