Skip to content

Commit 9c7606a

Browse files
authored
Merge pull request frappe#38280 from sokumon/mention-issue
2 parents dbdbba7 + 8e9446d commit 9c7606a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

frappe/desk/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def get_names_for_mentions(search_term: str):
393393
continue
394394

395395
mention_data["link"] = frappe.utils.get_url_to_form(
396-
"User Group" if mention_data.get("is_group") else "User Profile", mention_data["id"]
396+
"User Group" if mention_data.get("is_group") else "User", mention_data["id"]
397397
)
398398

399399
filtered_mentions.append(mention_data)

frappe/public/js/frappe/form/controls/quill-mention/quill.mention.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Mention {
158158
return {
159159
id: this.mentionList.childNodes[this.itemIndex].dataset.id,
160160
value: itemLink
161-
? `<a href="${itemLink}" target="_blank">${
161+
? `<a class="mention-link" href="${itemLink}" target="_blank">${
162162
this.mentionList.childNodes[this.itemIndex].dataset.value
163163
}`
164164
: this.mentionList.childNodes[this.itemIndex].dataset.value,

frappe/public/scss/common/quill.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,7 @@
346346
.ql-bubble .ql-editor img {
347347
max-width: 500px !important;
348348
}
349+
.mention-link::after,
350+
.mention-link::before {
351+
display: none;
352+
}

0 commit comments

Comments
 (0)