fix(Server Script): open docs URL in new tab (#33982)

This commit is contained in:
Raffael Meyer 2025-09-15 12:53:52 +02:00 committed by GitHub
parent a3d6c767b3
commit b7b34196bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ def safe_exec(
if not is_safe_exec_enabled():
msg = _("Server Scripts are disabled. Please enable server scripts from bench configuration.")
docs_cta = _("Read the documentation to know more")
msg += f"<br><a href='https://frappeframework.com/docs/user/en/desk/scripting/server-script'>{docs_cta}</a>"
msg += f"<br><a href='https://frappeframework.com/docs/user/en/desk/scripting/server-script' target='_blank' rel='noopener noreferrer'>{docs_cta}</a>"
frappe.throw(msg, ServerScriptNotEnabled, title="Server Scripts Disabled")
# build globals