Skip to content

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

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

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

Conversation

@lacatoire

@lacatoire lacatoire commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Serve the extensions manual (English only, from php/doc-extensions) from /manual/extensions/: a 301 from /manual/<lang>/<page>.php to /manual/extensions/<page>.php for the moved pages, no language chooser on its pages, and shortcuts (php.net/apcu_add) that fall back to it. Adds 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, links in both directions, journeys in Chromium).

Includes the commits of #1960.

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

The tests of the block need php/doc-extensions#57 (the redirects of the mongodb and mysql pages renamed before the move): merge it before or with this pull request.

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
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