FIX: The default inbox label if username is not all lower cased in the url (#20531)

This commit is contained in:
Blake Erickson 2023-03-05 10:04:56 -07:00 committed by GitHub
parent 1c9f300896
commit 2fcfaccb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export default class extends Controller {
for (let i = this.messagesDropdownContent.length - 1; i >= 0; i--) {
const row = this.messagesDropdownContent[i];
if (this.router.currentURL.includes(row.id)) {
if (this.router.currentURL.toLowerCase().includes(row.id)) {
value = row.id;
break;
}

View File

@ -697,7 +697,7 @@ acceptance(
});
test("navigating between user messages route with dropdown", async function (assert) {
await visit("/u/charlie/messages");
await visit("/u/Charlie/messages");
const messagesDropdown = selectKit(".user-nav-messages-dropdown");