Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirects for Reference URLS with # #487

Open
stalgiag opened this issue Aug 15, 2024 · 2 comments
Open

Redirects for Reference URLS with # #487

stalgiag opened this issue Aug 15, 2024 · 2 comments

Comments

@stalgiag
Copy link
Collaborator

stalgiag commented Aug 15, 2024

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:

@stalgiag stalgiag changed the title Redirects for # URLS Redirects for Reference URLS with # Aug 15, 2024
@AbhishekSingh198
Copy link

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

@stalgiag
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants