Skip to content

fix: auto-load route from URL parameters#409

Open
Rohiyadaop wants to merge 2 commits intovalhalla:masterfrom
Rohiyadaop:fix-url-route-autoload
Open

fix: auto-load route from URL parameters#409
Rohiyadaop wants to merge 2 commits intovalhalla:masterfrom
Rohiyadaop:fix-url-route-autoload

Conversation

@Rohiyadaop
Copy link
Copy Markdown

Fix: Auto-load route from URL parameters

Fixes Issue

Closes #394

Changes proposed

  • Parse wps URL parameters on initial page load

  • Hydrate waypoints using reverse geocoding

  • Automatically render route when:

    • Map is ready
    • At least 2 valid waypoints exist
  • Moved URL parsing logic from DirectionsControl to App

  • Prevent duplicate execution using useRef

  • Added unit tests for:

    • URL waypoint hydration
    • Auto route rendering

Note to reviewers

This fix ensures that when a saved route URL is opened, the route is automatically displayed without requiring manual interaction.

Copy link
Copy Markdown
Contributor

@a-y-a-n-das a-y-a-n-das left a comment

Choose a reason for hiding this comment

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

I think these lockfile changes are unintended.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2026

Preview is ready! 🚀 You can view it here: https://valhalla-app-tests.gis-ops.com/409

@Rohiyadaop
Copy link
Copy Markdown
Author

I think these lockfile changes are unintended.

Removed the unintended lockfile changes in 7c24ccd.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paste of route URL doesn't show route until "route" icon is selected

3 participants