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

Make links backwards compatible (mostly by adding old toki) #5

Open
alifeee opened this issue Dec 5, 2023 · 10 comments
Open

Make links backwards compatible (mostly by adding old toki) #5

alifeee opened this issue Dec 5, 2023 · 10 comments
Labels
enhancement New feature or request
Milestone

Comments

@alifeee
Copy link
Member

alifeee commented Dec 5, 2023

For as many as I can think of, the links should be backwards compatible.

This could either be done using eleventy's permalink option, or redirects

Redirects would usually be done on the server [citation needed], and we can't do them on GitHub pages [citation needed]

However, we can make files like

<meta http-equiv="REFRESH" content="0;URL=./html/index.html" />

which are clientside redirects. These are not great but a patch-job.

examples from liputenpo.org:

@alifeee
Copy link
Member Author

alifeee commented Dec 10, 2023

proof of concept is working on branch https://github.com/alifeee/liputenpo/tree/feature/url-redirects

full list of redirects will have to be extracted from wordpress site, but I think it is just

  • pdf URLs
  • toki (when they are added) -> example
  • jan pali (will probably be renamed to this from "about" - wordpress default) -> page

@alifeee
Copy link
Member Author

alifeee commented Jan 20, 2024

see current sitemap on https://liputenpo.org/sitemap_index.xml

@alifeee
Copy link
Member Author

alifeee commented Jan 20, 2024

redirects.yaml now holds all page URLs on the WordPress site.

It can have optional redirects which will lead to a new page, or otherwise it leads to the 404 page

image

@alifeee
Copy link
Member Author

alifeee commented Jan 20, 2024

we still need to redirect content urls

@alifeee
Copy link
Member Author

alifeee commented Jan 30, 2024

we still need to redirect content urls

I do not think this is possible as the site is currently set up.

Attempting to redirect this, for example:

- /wp-content/uploads/2021/04/akesi.png: /pdfs/0001akesi_sinpin.png

fails

image

we can probably not redirect files without server access

if the site is hosted on jan Peja's server then this could be possible

@alifeee alifeee added the enhancement New feature or request label Feb 14, 2024
@alifeee
Copy link
Member Author

alifeee commented Mar 11, 2024

for now I have removed content URLs with 6929e26

There are a lot of missing redirects that are toki that are not yet moved over.

This can be done over time

@alifeee alifeee changed the title Make links backwards compatible Make links backwards compatible (mostly by adding old toki) Mar 11, 2024
@alifeee
Copy link
Member Author

alifeee commented Mar 21, 2024

tracking 404 links, as tracked by GoatCounter

image

  • liputenpo.org/category/lipu - redirected to /
  • liputenpo.org/jan-kule-lon-tenpo-pini-la-jan-sona-alan-tuwin
  • liputenpo.org/musi-linja
  • liputenpo.org/sitelen-pona-pi-nimi-nalanja
  • liputenpo.org/nasin-nanpa-pona

@alifeee
Copy link
Member Author

alifeee commented Mar 22, 2024

This is a recurring task, see https://liputenpo.goatcounter.com for visits to ala

@alifeee
Copy link
Member Author

alifeee commented Mar 26, 2024

  • /kati-tiki-tu-lili
  • /sitelen-anku

@alifeee
Copy link
Member Author

alifeee commented Apr 30, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant