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

fix: open cal video url on new page when ready #19683

Merged
merged 6 commits into from
Mar 5, 2025
Merged

Conversation

Udit-takkar
Copy link
Contributor

@Udit-takkar Udit-takkar commented Mar 3, 2025

What does this PR do?

  • Fixes #XXXX (GitHub issue number)
  • Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • N/A I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  1. Create team event type and enable instant meeting
  2. Click on connect_now on booking page to book meeting

In case of embed we should open it on new tab.

Copy link

vercel bot commented Mar 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Mar 5, 2025 10:20am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 5, 2025 10:20am

@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Mar 3, 2025
@Udit-takkar Udit-takkar added this to the v5.1 milestone Mar 4, 2025
Comment on lines 204 to 212

const baseUrl = window.location.href.split("?")[0].split("#")[0];

const baseUrlWithoutPath = baseUrl.split("/").slice(0, 3).join("/");
const fullUrl = newPath.startsWith("/")
? `${baseUrlWithoutPath}${newPath}`
: `${baseUrlWithoutPath}/${newPath}`;

window.open(fullUrl, "_blank", "noopener,noreferrer");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open on new tab when user clicks on "connect now"

@Udit-takkar Udit-takkar marked this pull request as ready for review March 4, 2025 10:42
@Udit-takkar Udit-takkar requested a review from a team as a code owner March 4, 2025 10:42
@graphite-app graphite-app bot requested a review from a team March 4, 2025 10:42
@dosubot dosubot bot added the 🐛 bug Something isn't working label Mar 4, 2025
Copy link

graphite-app bot commented Mar 4, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (03/04/25)

1 reviewer was added to this PR based on Keith Williams's automation.

PeerRich
PeerRich previously approved these changes Mar 4, 2025
Copy link
Member

@hariombalhara hariombalhara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a suggestion that greatly simplifies the code if it is acceptable

@github-actions github-actions bot marked this pull request as draft March 5, 2025 10:11
Copy link
Contributor

github-actions bot commented Mar 5, 2025

E2E results are ready!

Copy link
Member

@SomayChauhan SomayChauhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Udit-takkar Udit-takkar merged commit f008a28 into main Mar 5, 2025
61 of 62 checks passed
@Udit-takkar Udit-takkar deleted the fix/open-on-new-page branch March 5, 2025 12:57
ThyMinimalDev pushed a commit that referenced this pull request Mar 5, 2025
* fix: open cal video url on new page when ready

* fix: open on new tab

* chore: change logic

* chore: add condition for embed

* chore: simplify the code

---------

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
itsalam pushed a commit to itsalam/cal.com that referenced this pull request Mar 6, 2025
* fix: open cal video url on new page when ready

* fix: open on new tab

* chore: change logic

* chore: add condition for embed

* chore: simplify the code

---------

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants