niwanetwork / niwa-website

The official website for the Nintendo Independent Wiki Alliance
https://niwanetwork.org
9 stars 15 forks source link

Creating new redirect service + fixing getMemberWikis() function #139

Closed KevinPayravi closed 9 months ago

KevinPayravi commented 9 months ago

This PR introduces a new /go page that serves as a redirect gateway to any member NIWA wiki.

URL format: https://niwanetwork.org/go/{site}/{article}

Example: https://niwanetwork.org/go/nookipedia/Tom_Nook

See screenshot:

Screenshot of the new redirect gateway

The main driver for this is the proposed NIWA article ID property on Wikidata, which requires a central redirection service.

While we could technically use Nintendo Wiki's interwiki links, I'm proposing this system at the top-level site for a few reasons:


This PR also fixes the getMemberWiki function when no language is provided.