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(portal): use window.location.origin instead of the window.location.href #6770

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

vikrantgupta25
Copy link
Collaborator

@vikrantgupta25 vikrantgupta25 commented Jan 8, 2025

Summary

  • the portal session fails when the return_url is too large, instead use the origin only

Related Issues / PR's

contributes to - https://github.com/SigNoz/engineering-pod/issues/2129

Copy link

github-actions bot commented Jan 8, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the bug Something isn't working label Jan 8, 2025
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 1 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 that window.location.origin is the intended behavior for successURL. 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 from window.location.href to window.location.origin is appropriate for the successURL 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.

Copy link

github-actions bot commented Jan 8, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

1 similar comment
Copy link

github-actions bot commented Jan 8, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 1 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 from window.location.href to window.location.origin is appropriate here to prevent issues with large URLs. Ensure that the successURL and cancelURL are correctly handled by the backend to avoid any unexpected behavior.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The change from window.location.href to window.location.origin is consistent with the PR description and intent to avoid large return_url.

Workflow ID: wflow_tBrVCORWx3paEebd


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

github-actions bot commented Jan 8, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link

github-actions bot commented Jan 8, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@vikrantgupta25 vikrantgupta25 enabled auto-merge (squash) January 8, 2025 05:55
@vikrantgupta25 vikrantgupta25 merged commit 80740f6 into main Jan 8, 2025
16 checks passed
@vikrantgupta25 vikrantgupta25 deleted the fix/request-portal-session branch January 8, 2025 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants