Skip to content

Fully customize policy links through ENV vars #20705

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

Open
zab1981 opened this issue Apr 15, 2025 · 0 comments
Open

Fully customize policy links through ENV vars #20705

zab1981 opened this issue Apr 15, 2025 · 0 comments
Labels
✨ feature New feature or request 🚨 needs approval This feature request has not been reviewed yet by the Product Team and needs approval beforehand

Comments

@zab1981
Copy link

zab1981 commented Apr 15, 2025

Is your proposal related to a problem?

Yes. In the self-hosted version of Cal.com, the links to the Terms of Use and Privacy Policy at the bottom of the booking page still point to the default Cal.com URLs. This is misleading and potentially problematic, especially since all data is processed and stored locally in the self-hosted environment. As a result, these links do not reflect the actual terms and privacy policies applicable to end users.

Describe the solution you'd like

Add environment variables (e.g., TERMS_OF_USE_URL and PRIVACY_POLICY_URL) to allow self-hosted users to configure custom links for the Terms of Use and Privacy Policy. If set, these values should replace the default Cal.com URLs in the footer of the booking page and any other instances where these links appear.

Current code snippet affected:

<div class="text-subtle my-3 w-full text-xs">
  By proceeding, you agree to our 
  <a class="text-emphasis hover:underline" target="_blank" href="https://cal.com/terms">Terms of Use</a> 
  and 
  <a class="text-emphasis hover:underline" target="_blank" href="https://cal.com/privacy">Privacy Policy</a>.
</div>

Suggested Improvement: Modify the code to utilize environment variables for the URLs.

<div class="text-subtle my-3 w-full text-xs">
  By proceeding, you agree to our 
  <a class="text-emphasis hover:underline" target="_blank" href="{process.env.NEXT_PUBLIC_WEBSITE_TERMS_URL || 'https://cal.com/terms'}">Terms of Use</a> 
  and 
  <a class="text-emphasis hover:underline" target="_blank" href="{process.env.NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL || 'https://cal.com/privacy'}">Privacy Policy</a>.
</div>

Describe alternatives you've considered

  • Manually editing the codebase to change these links — not ideal, as it makes future updates harder and increases maintenance overhead.

  • Using proxy redirects or front-end manipulation via JavaScript — fragile and not recommended for something as fundamental as legal documents.

Additional context

Having incorrect or misleading policy links can raise legal and trust issues for self-hosted deployments. This feature would improve compliance and transparency for organizations hosting Cal.com on their own infrastructure.

Requirement/Document

https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32016R0679#art_12

@zab1981 zab1981 added ✨ feature New feature or request 🚨 needs approval This feature request has not been reviewed yet by the Product Team and needs approval beforehand labels Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request 🚨 needs approval This feature request has not been reviewed yet by the Product Team and needs approval beforehand
Projects
None yet
Development

No branches or pull requests

1 participant