-
Notifications
You must be signed in to change notification settings - Fork 11.5k
chore: Make URLs for terms and privacy policy customizable via .env vars #16350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Make URLs for terms and privacy policy customizable via .env vars #16350
Conversation
|
@CodeShakingSheep is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (08/25/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (08/25/24)1 label was added to this PR based on Keith Williams's automation. |
anikdhabal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice works @CodeShakingSheep , left commnets
anikdhabal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
E2E results are ready! |
What does this PR do?
This PR allows self-hosted instances to set custom URLs for Terms and Privacy Policy by introducing two new
.envvarsNEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URLandNEXT_PUBLIC_WEBSITE_TERMS_URL. The custom URLs will then be displayed on the signup page as well as on the event booking form.Signup page before


This was set to
${WEBSITE_URL}/terms(note the URL in the bottom left corner of the screenshot). While this page exists for the Cal.com platform it doesn't exist in the case of self-hosted instances which just led to a HTTP 404 error. See screenshot for terms URL (same applied to the privacy policy URL).Signup page after (with custom URLs)

Note the link to custom terms in the bottom left corner when hovering over the terms link. Same applies to privacy policy link.
Signup page after (without custom URLs - fall back to Cal.com terms and privacy policy)

Note the link to Cal.com's terms in the bottom left corner when hovering over the terms link. Same applies to privacy policy link.
Event booking form before

There was no reference to terms and privacy policy at all (was removed in #13966).
Event booking form after (with custom URLs)

Note the link to custom terms in the bottom left corner when hovering over the terms link. Same applies to privacy policy link.
Event booking form after (without custom URLs - fall back to Cal.com terms and privacy policy)

Note the link to Cal.com's terms in the bottom left corner when hovering over the terms link. Same applies to privacy policy link.
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Set the
.envvarsNEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URLandNEXT_PUBLIC_WEBSITE_TERMS_URLto any URL. Then visitOn both pages hover over the
TermsandPrivacylinks and verify that they point to the URLs you set in.env(NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URLandNEXT_PUBLIC_WEBSITE_TERMS_URL).