Merge pull request #38290 from frappe/change_fc_login_option
fix(login): Redirect to FC dashboard site page
This commit is contained in:
commit
0d78551e37
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ def get_base_url():
|
||||||
|
|
||||||
|
|
||||||
def get_site_login_url():
|
def get_site_login_url():
|
||||||
return f"{get_base_url()}/dashboard/site-login"
|
return f"{get_base_url()}/dashboard/login"
|
||||||
|
|
||||||
|
|
||||||
def get_site_name():
|
def get_site_name():
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ def get_context(context):
|
||||||
|
|
||||||
context["login_with_email_link"] = frappe.get_system_settings("login_with_email_link")
|
context["login_with_email_link"] = frappe.get_system_settings("login_with_email_link")
|
||||||
context["login_with_frappe_cloud_url"] = (
|
context["login_with_frappe_cloud_url"] = (
|
||||||
f"{get_site_login_url()}?site={frappe.local.site}"
|
f"{get_site_login_url()}?redirect=/dashboard/sites/{frappe.local.site}/insights/overview"
|
||||||
if on_frappecloud() and frappe.conf.get("fc_communication_secret")
|
if on_frappecloud() and frappe.conf.get("fc_communication_secret")
|
||||||
else None
|
else None
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue