Skip to content

Serve the pages of the moved extensions from /manual/extensions/ - #2038

Open
lacatoire wants to merge 11 commits into
php:masterfrom
lacatoire:feat/doc-extensions-redirects
Open

lacatoire wants to merge 11 commits into
php:masterfrom
lacatoire:feat/doc-extensions-redirects

Conversation

@lacatoire

@lacatoire lacatoire commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Depends on #1960 (redirects.json sidecar), whose commits this branch includes. This pull request only adds what that one does not do:

  • the pages of the extensions manual (English only, from php/doc-extensions) are rendered from /manual/extensions/: base href and no language chooser (include/shared-manual.inc);
  • the shortcuts of the moved extensions (php.net/apcu_add) fall back to that manual (include/manual-lookup.inc);
  • tests/extensions-migration.sh, the end-to-end test of the block. With PLAYWRIGHT=1 it also runs the Playwright tests of tests/EndToEnd/ExtensionsMigration: every old URL, variants of it, the redirects of doc-en that lead to the extensions manual, links in both directions and journeys in Chromium.

A page that moved and kept its name needs no redirect: error.php (#1960) sends it to the extensions manual when it exists only there.

Block: php/phd#270, php/phd#272, php/phd#274, php/doc-extensions#49, php/doc-extensions#58, php/doc-en#5998, php/doc-en#6136, php/doc-fr#3696, php/doc-base#359. Merge order and how to test: php/doc-fr#3696.

jordikroon and others added 2 commits November 23, 2026 13:45
Pages of the third-party extensions that moved to php/doc-extensions are
served from /manual/extensions/ (English only):

- a 301 from /manual/<lang>/<page>.php to /manual/extensions/<page>.php
  for the moved pages
- no language chooser on the pages of the extensions manual
- shortcuts (php.net/apcu_add) fall back to the extensions manual
- shortcuts that only expand to a page are served in place

Add tests/extensions-migration.sh, the end-to-end test of the block, and
the Playwright tests of tests/EndToEnd/ExtensionsMigration (run with
PLAYWRIGHT=1).
@lacatoire
lacatoire force-pushed the feat/doc-extensions-redirects branch from 4277859 to 22e9b62 Compare November 23, 2026 12:45
lacatoire and others added 9 commits November 23, 2026 15:12
The extensions manual map was only read for /manual/<lang>/<page>.php and its targets could not carry an anchor. Read its 'both' and 'shortcut' maps too, keep the anchor, and test the mongodb and mysql cases.
Check the targets and anchors of the maps, the shortcuts and the renamed pages that moved, the redirects of the English manual, and guard against a redirects.json whose maps are not arrays.
The two enum.random.intervalboundary redirects no longer lead to a dead page.
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