Merge pull request #24549 from cogk/url_encode

fix(search): Fix URL encoding for search result
This commit is contained in:
mergify[bot] 2024-01-28 05:35:00 +00:00 committed by GitHub
commit 4b87bf6ec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -317,7 +317,7 @@ frappe.search.SearchDialog = class {
get_link(result) {
let link = "";
if (result.route) {
link = `href="/app/${result.route.join("/")}"`;
link = `href="${frappe.router.make_url(result.route)}"`;
} else if (result.data_path) {
link = `data-path=${result.data_path}"`;
}