processing / processing/p5.js-website

Redirects for Reference URLS with #

Open
#487 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
MDX
Stars
96
Forks
322
Avg merge
5d 22h
Merged PRs (30d)
8

Description

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:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Astro's configured and dynamic redirect guidance, then inspect the reference-page routing entry point in the p5.js website. Verify that the legacy URL ending in #/p5.TypedDict reaches the equivalent p5/p5.TypedDict/ page, while preserving the intended behavior for an empty hash.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.