Skip to content

Old Schedule Finder links redirect to SF 2.0#3012

Open
lvachon1 wants to merge 3 commits intomainfrom
lev/feat/sf/redirect_sf1
Open

Old Schedule Finder links redirect to SF 2.0#3012
lvachon1 wants to merge 3 commits intomainfrom
lev/feat/sf/redirect_sf1

Conversation

@lvachon1
Copy link
Contributor

@lvachon1 lvachon1 commented Mar 12, 2026

Scope

Asana Ticket: 📅🔎 Old Schedule Finder links redirect to SF 2.0

Implementation

Added a rewrite function to detect schedule finder URLs and send users to the new SF2.0 page

Screenshots

How to test

Open the old schedule finder to generate an old URL. Refresh the page or open that URL in a new tab. Observe that the new SF2.0 loads.

http://localhost:4001/schedules/CR-Providence/line?schedule_finder%5Bdirection_id%5D=0&schedule_finder%5Borigin%5D=place-NEC-1969

TODO:

Find a way to clean up the query params that are appended to the end of the URL, I appended a '#' to my URL chunk as a hack for now

Find a way to do this in a more elixir-y fashion

schedule direction variant?

@lvachon1 lvachon1 requested a review from a team as a code owner March 12, 2026 19:11
@lvachon1 lvachon1 requested a review from thecristen March 12, 2026 19:11
@lvachon1 lvachon1 marked this pull request as draft March 12, 2026 19:12
@lvachon1 lvachon1 marked this pull request as ready for review March 13, 2026 18:27
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.

1 participant