Skip to content

fix: feedback URL serialization handling in SendFeedback component#1879

Merged
gustavobtflores merged 1 commit intokernelci:mainfrom
gustavobtflores:fix/feedback-url
Apr 28, 2026
Merged

fix: feedback URL serialization handling in SendFeedback component#1879
gustavobtflores merged 1 commit intokernelci:mainfrom
gustavobtflores:fix/feedback-url

Conversation

@gustavobtflores
Copy link
Copy Markdown
Contributor

Description

Fix feedback URL construction in the side menu so the generated GitHub issue body and email body include the correct current page URL.

Changes

  • Build fullLocation from useLocation().href and prepend window.location.origin when needed
  • URL-encode the email subject

How to test (if needed)

  1. Start the dashboard and navigate to any page
  2. Open the side menu and click "Send feedback"
  3. Verify the GitHub and Email actions include the current URL correctly

Closes #1848

@gustavobtflores gustavobtflores self-assigned this Apr 27, 2026
@gustavobtflores gustavobtflores added bug Something isn't working Frontend Most or all of the changes for this issue will be in the frontend code. labels Apr 27, 2026
Copy link
Copy Markdown
Collaborator

@MarceloRobert MarceloRobert left a comment

Choose a reason for hiding this comment

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

LGTM, I tested and it seems fixed

setFullLocation(newUrl);
const fullLocation = useMemo(() => {
const href = location.href;
// href is relative (starts with "/"), prepend origin
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I thought that origin was like "maestro" or "linaro", but I see that it's localhost or staging or production. Maybe worth a comment in the code

Copy link
Copy Markdown
Contributor

@alanpeixinho alanpeixinho left a comment

Choose a reason for hiding this comment

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

Everything seems ok

@gustavobtflores gustavobtflores added this pull request to the merge queue Apr 28, 2026
Merged via the queue into kernelci:main with commit 158dd79 Apr 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Frontend Most or all of the changes for this issue will be in the frontend code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Malformed serialization for argument in the feedback URLs: [object Object]

3 participants