Skip to content

chore(Routes.Route): remove param override#3341

Merged
thecristen merged 1 commit into
mainfrom
cbj/algolia-gl-url
Jul 17, 2026
Merged

chore(Routes.Route): remove param override#3341
thecristen merged 1 commit into
mainfrom
cbj/algolia-gl-url

Conversation

@thecristen

Copy link
Copy Markdown
Collaborator

Scope

Asana Ticket: 🐞 GL search results aren't working for branches

Implementation

We used the Phoenix.Param protocol to convert the Route struct into URL parameters, but I don't think we wish to convert all Green Line branch links to direct to the combined Green Line page anymore.

So I deleted this.

How to test

Util.site_path(:schedule_path, [:show, Routes.Repo.get("Green-B")]) outputs "/schedules/Green-B" instead of "/schedules/Green"

This used the `Phoenix.Param` [protocol](https://phoenix.hexdocs.pm/Phoenix.Param.html) to convert the Route struct into URL parameters, but I don't think we wish to convert all Green Line branch links to direct to the combined Green Line page anymore.
@thecristen
thecristen requested a review from a team as a code owner July 17, 2026 16:26
@thecristen
thecristen requested a review from joshlarson July 17, 2026 16:26

@joshlarson joshlarson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice catch - this feels like one of those things that could easily have driven someone (me) up a tree, trying to figure out why ~p"/schedules/#{%Route{id: "Green-E"}}" was returning /schedules/Green... I wouldn't even have known to look here!

@thecristen
thecristen merged commit f4eb1fc into main Jul 17, 2026
27 checks passed
@thecristen
thecristen deleted the cbj/algolia-gl-url branch July 17, 2026 17:36
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.

2 participants