jMonkeyEngine / jMonkeyEngine/wiki

Redirect dead links to current pages

Open
#149 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Handlebars
Stars
33
Forks
61
PR merge metrics
No merged PRs in 30d

Description

In an effort to fix dead links i wrote this cloudflare worker and did some remapping on the hub to get all the dead links redirected to existing pages.

However there is one type of dead link that i cannot fix from my side: https://wiki.jmonkeyengine.org/sdk/troubleshooting.html
These urls without the version in them should be redirected to either the last version or to https://wiki.jmonkeyengine.org/legacy that is where the worker is hosted (eg. https://wiki.jmonkeyengine.org/legacy/sdk/troubleshooting.html , this will automatically redirect ), which one is easier.

Note: it can be a client-side javascript redirect on the 404 page (for example), like the one used in https://javadoc.jmonkeyengine.org/latest

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 by inspecting how the wiki handles its 404 page and compare it with cf-legacy-wiki-router/worker.js and the redirect behavior linked from javadoc.jmonkeyengine.org/latest. Done means versionless URLs such as /sdk/troubleshooting.html reach the corresponding current or /legacy page.

Written by the indexing model from the issue text.

Assessment

Tech stack
handlebars, javascript
Domain
documentation, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.