Skip to content
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

Missing terms and condition text/link on scheduling link #15045

Open
dahal opened this issue May 15, 2024 · 2 comments
Open

Missing terms and condition text/link on scheduling link #15045

dahal opened this issue May 15, 2024 · 2 comments
Labels
booking-page area: booking page, public booking page, booker 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work

Comments

@dahal
Copy link

dahal commented May 15, 2024

Found a bug? Please fill out the sections below. 👍

Issue Summary

I just noticed a bug while I was embedding cal link, looks like its also on regular scheduling page

CleanShot 2024-05-15 at 04 11 12

Steps to Reproduce

  1. Go to any scheduling link, you will see "Terms" / "Terms of service" missing
Copy link

dosubot bot commented May 15, 2024

It looks like the issue with the missing "Terms and Conditions" link on the scheduling page might be related to the conditional rendering logic in the application's code. Specifically, the application checks for certain conditions to be met before displaying the "Terms and Conditions" link. These conditions involve the isPlatform flag and the IS_CALCOM constant.

  1. isPlatform Flag: This flag is used to determine if the application is being used within another platform. If a clientId is present, indicating the user is considered a platform user, the isPlatform flag is set to true, which might prevent the "Terms and Conditions" link from being displayed.

  2. IS_CALCOM Constant: The application also checks if it's running on Cal.com's platform through the IS_CALCOM constant. If for some reason IS_CALCOM is set to false, the "Terms and Conditions" link will not be rendered.

  3. WEBSITE_URL Constant: The links to "Terms" and "Privacy Policy" are constructed using the WEBSITE_URL constant. If you're running this in a local development environment or if the environment variable NEXT_PUBLIC_WEBSITE_URL is set incorrectly, it could affect the rendering of these links.

To troubleshoot this issue, you might want to:

  • Verify the conditions under which the isPlatform flag is set to true in your environment.
  • Check the configuration or the codebase for how the IS_CALCOM constant is determined and ensure it's set correctly for your use case.
  • Ensure the NEXT_PUBLIC_WEBSITE_URL environment variable is set correctly, especially if you're working in a local development environment.

These steps should help in diagnosing why the "Terms and Conditions" link is not appearing as expected.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added booking-page area: booking page, public booking page, booker 🐛 bug Something isn't working labels May 15, 2024
@ciaranha ciaranha added ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work Medium priority Created by Linear-GitHub Sync labels May 15, 2024
deepak-singh19 pushed a commit to deepak-singh19/cal.com that referenced this issue May 17, 2024
deepak-singh19 pushed a commit to deepak-singh19/cal.com that referenced this issue May 17, 2024
@deepak-singh19
Copy link

hey @ciaranha I have created a PR for the issue and let me know if anything needs to be change. This is how it looks now.

Screenshot 2024-05-17 at 9 06 19 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
booking-page area: booking page, public booking page, booker 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work
Projects
None yet
Development

No branches or pull requests

3 participants