processing / p5.js-website

New p5.js website!
http://p5js.org
MIT License
13 stars 70 forks source link

Redirects for Reference URLS with # #487

Open stalgiag opened 4 weeks ago

stalgiag commented 4 weeks ago

Increasing Access

This will increase the number of legacy links that work with the new site.

Most appropriate sub-area of p5.js?

Reference

Feature request details

Currently, Reference page URLs that have a # in the link lead to the landing reference page.

Here is an example of a link that doesn't work as desired: https://p5js.org/reference/#/p5.TypedDict Whereas on the legacy site, this led to the specific entry: https://archive.p5js.org/reference/#/p5.TypedDict The equivalent link for the new site would be: https://p5js.org/reference/p5/p5.TypedDict/

When encountering an empty hash, the page should redirect to the same URL with 'p5' in place of the hash '#'. If a contributor wants to take this on, it could be a relatively small change. It is also possible that some unexpected complexity will be encountered and if this is the case, I'd be happy to help work through it.

Some helpful resources on redirects in Astro for anyone considering taking it on:

AbhishekSingh198 commented 3 weeks ago

Hi @stalgiag, I want to work on this issue, can you assign me with this

stalgiag commented 3 weeks ago

@AbhishekSingh198 Done! Thanks for volunteering. Let me know if you need any help or reviews.