FIX: The default inbox label if username is not all lower cased in the url (#20531)
This commit is contained in:
parent
1c9f300896
commit
2fcfaccb5c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue