ThatConference / that-website

THAT Conference
https://www.thatconference.com
MIT License
32 stars 22 forks source link

Back to partners page uses incorrect link #542

Closed brettski closed 4 years ago

brettski commented 4 years ago

On the /partner/[slug] page the back to partners link is incorrect. It goes to /wi/partners instead of /partners

image

This is a little more complicated than an incorrect reference. The link back is from component HeroSection called in partner/[slug].js.

Where we get into trouble here is we don't know where the user came from to view the partner details. They may have come from one of many events or the main partner page. Ideally we send them back to the partner list they came from (e.g. /wi/2020). But if that is too difficult I guess the link can always point to /partners (and perhaps renamed).

There is currently a location parameter for the HeroSection component which is used to direct where the user came from. Currently we don't where the user came from when they get to the /partner/[slug].js page