Skip to content

Commit

Permalink
fix(search): Fix URL encoding for search result (#24558)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7651b51)

Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>
  • Loading branch information
mergify[bot] and cogk committed Jan 28, 2024
1 parent 5c1af6f commit 44ec1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/ui/toolbar/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,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}"`;
}
Expand Down

0 comments on commit 44ec1e3

Please sign in to comment.