swup / docs

Official swup documentation 📘
https://swup.js.org/getting-started
12 stars 35 forks source link

Improve pages that lead to external ressources #102

Closed hirasso closed 1 year ago

hirasso commented 1 year ago

Describe the problem

If you google for example "swup gtag plugin", the first result will be the (empty!) gtag-plugin page on the docs, that's only there to direct visitors directly to what is set in external_link:

Screenshot 2023-04-23 at 17 32 11

Right now these links are broken due to the new docs structure: https://swup.js.org/docs/third-party-integrations/gtag-plugin.html. But they will appear again. This time at https://swup.js.org/docs/third-party-integrations/gtag-plugin/ (without the .html extension):

image

An empty page with no information.

Describe the proposed solution

We have a few options to make this experience smoother:

image

What's your opinion on this?

hirasso commented 1 year ago

Another solution could be a html redirect on these pages:

<meta http-equiv="refresh" content="0; URL='https://github.com/joshuaHallee/swup-gtag-plugin'">