-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
|
||
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"); |
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.
Open on new tab when user clicks on "connect now"
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. |
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.
Left a suggestion that greatly simplifies the code if it is acceptable
E2E results are ready! |
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
* 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>
* 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>
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
In case of embed we should open it on new tab.