Skip to content

feat: /build redirects to missing-elements.github.io/h5p/build/, with its fragment - #18

Merged
alekswebnet merged 2 commits into
mainfrom
feat/build-redirect
Nov 10, 2026
Merged

alekswebnet merged 2 commits into
mainfrom
feat/build-redirect

Conversation

@alekswebnet

@alekswebnet alekswebnet commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17. Also closes #16, which this supersedes: the build page takes the new site's own design, not the player's page.css.

Merge after missing-elements/missing-elements.github.io#8 is deployed, so the redirect never points at a page that isn't there yet.

What changed

  • build.html is now a redirect to https://missing-elements.github.io/h5p/build/. It keeps the address's fragment, so a link a chat wrote before, /build#source=…, still builds its source there. A query is dropped, such as the ?utm_source=chatgpt.com ChatGPT adds. Without JavaScript, a <noscript> refresh goes to the new address without the fragment, and the page links to it. The page is noindex with a canonical link. Its inline script is allowed by hash, which the existing CSP plugin writes.
  • The page's code and tests go: src/build-page.ts, src/build-source.ts, src/build.css and e2e/build.spec.ts. They live on in the new site, unchanged except the stylesheet.
  • /bundles/ stays until the next library pack release, for copies of the h5p-author skill installed before the move. The plugin's comment and the README say when it goes and what goes with it: the plugin, its test and the @missing-elements/h5p-author dependency.
  • README: /build is described as the redirect, with a short "The build page moved" section, and the bundles section has its end date.

Tests

The new e2e/build-redirect.spec.ts answers the other site with a stand-in page and checks where the browser goes:

  • /build#source=… arrives at …/h5p/build/#source=…, with and without a query;
  • bare /build arrives at …/h5p/build/;
  • with JavaScript off, /build still arrives there.

All 10 tests pass locally: the player page's, the bundles' and these. Mutation check: a redirect that drops location.hash fails the first test, and it passes again once the line is restored.


Summary by cubic

/build now redirects to the build page's new home at missing-elements.github.io/h5p/build, closing #17 and superseding #16. With JavaScript, the redirect keeps the address's fragment, so old /build#source=… links still build their source there; a query is dropped. Without JavaScript, a <noscript> refresh goes to the new address without the fragment.

  • The build page's code, styles and tests move to the new site; /bundles/ stays until the next library pack release, for skill copies installed before the move, then goes with its plugin, test and the @missing-elements/h5p-author dependency.
  • New e2e tests verify the redirect keeps the fragment with JavaScript and still lands on the new address without it, with no console or policy errors.
  • Merge after Host the H5P build page and the library bundles at /h5p/ missing-elements/missing-elements.github.io#8 is deployed, so the redirect never points at a missing page.

Written for commit 0830b10. Summary will update on new commits.

View guided diff Turn on auto-fix

…/, with its fragment

The build page moved to the Missing Elements site, in that site's own look
(missing-elements/missing-elements.github.io#8). build.html is now a redirect
that keeps the address's fragment, so a link a chat wrote before, #source= and
all, still builds; without JavaScript it refreshes to the new address. The
page's code and tests go with it. /bundles/ stays until the next pack release,
for copies of the h5p-author skill installed before the move.

Closes #17

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 10 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread README.md Resolved
Comment thread e2e/build-redirect.spec.ts Resolved
… check the no-script test's errors

Without JavaScript the refresh goes to the new address with no fragment; the
README said otherwise. The no-script test now asserts no page, console or
policy errors, as the other does, and names what it leaves out.
@alekswebnet
alekswebnet merged commit 605af24 into main Nov 10, 2026
3 checks passed
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.

Redirect /build to missing-elements.github.io/h5p/build/ The build page in the shared design, from the player's page.css

1 participant