-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(portal): use window.location.origin instead of the window.location.href #6770
Conversation
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
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.
👍 Looks good to me! Reviewed everything up to 17dce3f in 9 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/src/container/AppLayout/index.tsx:275
- Draft comment:
Ensure thatwindow.location.origin
is the intended behavior forsuccessURL
. This change will redirect to the base URL instead of the full path, which is often desired for success redirects. - Reason this comment was not posted:
Confidence changes required:50%
The change fromwindow.location.href
towindow.location.origin
is appropriate for thesuccessURL
as it should redirect to the base URL, not the full path.
Workflow ID: wflow_di0P8LHL2DJLY9SJ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
1 similar comment
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
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.
👍 Looks good to me! Incremental review on da9bb01 in 12 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/src/container/AppLayout/index.tsx:276
- Draft comment:
The change fromwindow.location.href
towindow.location.origin
is appropriate here to prevent issues with large URLs. Ensure that thesuccessURL
andcancelURL
are correctly handled by the backend to avoid any unexpected behavior. - Reason this comment was not posted:
Confidence changes required:20%
The change fromwindow.location.href
towindow.location.origin
is consistent with the PR description and intent to avoid largereturn_url
.
Workflow ID: wflow_tBrVCORWx3paEebd
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Summary
return_url
is too large, instead use the origin onlyRelated Issues / PR's
contributes to - https://github.com/SigNoz/engineering-pod/issues/2129