Skip to content

🐛 fix ReserveCalifornia booking URLs to use new path format#393

Open
ArtixZ wants to merge 1 commit intojuftin:mainfrom
ArtixZ:fix/reservecalifornia-booking-url
Open

🐛 fix ReserveCalifornia booking URLs to use new path format#393
ArtixZ wants to merge 1 commit intojuftin:mainfrom
ArtixZ:fix/reservecalifornia-booking-url

Conversation

@ArtixZ
Copy link
Copy Markdown

@ArtixZ ArtixZ commented Mar 14, 2026

Summary

  • ReserveCalifornia's new site uses /park/{rec_area_id}/{facility_id} instead of the old /Web/Default.aspx#!park/{rec_area_id}/{facility_id} hash-fragment format
  • Added booking_path_hash class attribute to UseDirectProvider to support both URL styles, defaulting to True (existing behavior) for backward compatibility
  • Set booking_path = "park" and booking_path_hash = False on ReserveCalifornia to generate correct URLs

Before: https://www.reservecalifornia.com/Web/Default.aspx#!park/695/628
After: https://www.reservecalifornia.com/park/695/628

Closes #392

Test plan

  • Verify ReserveCalifornia campsite search produces correct booking URLs
  • Verify other UseDirect providers (e.g. OhioStateParks, FloridaStateParks) still produce correct hash-fragment URLs
  • Run existing test suite to confirm no regressions

Made with Cursor

ReserveCalifornia's new site uses /park/{rec_area_id}/{facility_id}
instead of the old /Web/Default.aspx#!park/{rec_area_id}/{facility_id}
hash-fragment format. Add booking_path_hash flag to support both URL
styles across UseDirect providers.

Closes juftin#392

Made-with: Cursor
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.

ReserveCalifornia booking URLs use outdated format

1 participant