MobilityData / mobility-feed-api

Apache License 2.0
9 stars 3 forks source link

SEO enhancement: improved detailed feed URL to include agency #805

Open Alessandro100 opened 2 days ago

Alessandro100 commented 2 days ago

Descriptive URLs give better SEO results, at the moment we have

/feeds/mdb-310

this doesn't tell us anything about the feed besides it's ID, which is not great for the user but worse for SEO bot crawlers

Proposed

This would just extend the existing url and in the frontend we would just extract the id at the end. This is more SEO friendly and is a strategy used in transit land https://www.transit.land/feeds/f-9q9-bart

This would create the structure feeds/category/id, good for seo and clear to users as well as seo crawlers. Complexity is introduced when displaying content for this page /feeds/capital-transit. Also on the feed detail page our breadcrumbs are currently Feeds / GTFS Schedule / mbd-310 would have to change to Feeds / Capital Transit / GTFS Schedule / mbd-310. This strategy is used in transit feeds https://transitfeeds.com/p/agence-metropolitaine-de-transport/129

jcpitre commented 2 days ago

Blocked until we ha we have an agency directory/table

emmambd commented 2 days ago

Blocked by #808