Skip to content

Send /qr/ to the home page, for the QR codes - #221

Merged
mesejo merged 1 commit into
editionfrom
work/qr-redirect
Oct 21, 2026
Merged

mesejo merged 1 commit into
editionfrom
work/qr-redirect

Conversation

@DZPM

@DZPM DZPM commented Oct 21, 2026

Copy link
Copy Markdown
Member

The association wants to print QR codes with an address that does not change. This adds https://pybcn.org/qr/, which sends the reader to the home page.

To send the codes somewhere else later, move the aliases entry from content/_index.md to the new target page. The codes that are already printed stay valid.

  • Hugo writes /qr/index.html as a meta refresh to https://pybcn.org/, with a canonical link and noindex, and leaves it out of the sitemap.
  • GitHub Pages already redirects /qr to /qr/ and http to https, so http://pybcn.org/qr works too.
  • bin/check-content 0 errors, bin/check-html-safety PASS, bin/check-rendered PASS.

The association wants to print QR codes with an address that does not
change. The codes point to https://pybcn.org/qr/, and an alias on the home
page sends the reader from there to https://pybcn.org/. To send the codes
somewhere else later, move the alias to that page: the printed codes stay
valid.

Hugo writes /qr/index.html as a meta refresh with a canonical link and
noindex, and leaves it out of the sitemap. bin/check-rendered accepts an
alias page by its shape. GitHub Pages answers /qr with a redirect to /qr/,
so the address works with and without the slash.

Checked: bin/check-content 0 errors and 79 warnings, bin/check-html-safety
PASS, bin/check-rendered PASS on a build without drafts.
@DZPM DZPM self-assigned this Oct 21, 2026
@DZPM
DZPM requested review from ber2, mesejo and mrswats October 21, 2026 09:02
@mesejo
mesejo merged commit ea993db into edition Oct 21, 2026
7 checks passed
@DZPM
DZPM deleted the work/qr-redirect branch October 21, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants