pursuit icon indicating copy to clipboard operation
pursuit copied to clipboard

Go to the equivalent page when switching versions, if possible

Open hdgarrood opened this issue 10 years ago • 3 comments

If I am on the page for the Data.Maybe module version 0.3.2, and I use the version selector to select 0.3.1, then I should be taken to the Data.Maybe module for 0.3.1, not the package homepage for 0.3.1.

If that module does not exist, then I think it's ok to show a 404 page, as long as it explains what happened.

hdgarrood avatar Jul 08 '15 16:07 hdgarrood

I'm not sure if that's better than the current experience. At least with the way things are now, I never get a 404.

michaelficarra avatar Jul 08 '15 16:07 michaelficarra

Fair enough - how do you feel about making it so that that a request for a non-existent module in an existing package will redirect to the package homepage for that version?

eg: /packages/purescript-maybe/0.3.1/docs/Does.Not.Exist => /packages/purescript-maybe/0.3.1/

hdgarrood avatar Jul 08 '15 17:07 hdgarrood

Yeah, that works.

michaelficarra avatar Jul 09 '15 12:07 michaelficarra