mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 19:01:10 +08:00
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--) {
|
for (let i = this.messagesDropdownContent.length - 1; i >= 0; i--) {
|
||||||
const row = this.messagesDropdownContent[i];
|
const row = this.messagesDropdownContent[i];
|
||||||
|
|
||||||
if (this.router.currentURL.includes(row.id)) {
|
if (this.router.currentURL.toLowerCase().includes(row.id)) {
|
||||||
value = row.id;
|
value = row.id;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -697,7 +697,7 @@ acceptance(
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("navigating between user messages route with dropdown", async function (assert) {
|
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");
|
const messagesDropdown = selectKit(".user-nav-messages-dropdown");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user