Skip to content

feat: add shareable recommendation URLs using query parameters#852

Open
Hamsini-2607 wants to merge 1 commit into
komalharshita:mainfrom
Hamsini-2607:feat/shareable-recommendation-urls
Open

feat: add shareable recommendation URLs using query parameters#852
Hamsini-2607 wants to merge 1 commit into
komalharshita:mainfrom
Hamsini-2607:feat/shareable-recommendation-urls

Conversation

@Hamsini-2607

Copy link
Copy Markdown

Fixes #516
What this PR does
Encodes the recommendation form selections (skills, level, interest, time) into URL query parameters when results are generated. On page load, if query params are present, the form auto-populates and re-fetches recommendations automatically.
Changes made

static/script.js: Added URL writing using URLSearchParams and history.replaceState on form submit
static/script.js: Added loadFromURL() function on page load to read params and auto-submit the form

How to test

1.Fill the recommendation form and submit
2.Copy the URL — it will now contain query params like ?skills=Python&level=Intermediate&interest=Web+Development&time=medium
3.Open that URL in a new tab — the form auto-fills and results load automatically

@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

@Hamsini-2607 is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for submitting your first pull request to DevPath.

Before review:

  • Complete the PR template fully
  • Ensure all tests pass
  • Link your PR to an issue
  • Keep changes scoped to the issue

A maintainer will review your contribution soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Shareable Recommendation URLs Using Query Parameters

1 participant