mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 07:30:16 +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--) {
|
||||
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
Block a user