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

[TASK] Update permalink redirect matching for proper std:label #217

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

garvinhicking
Copy link
Contributor

"std:label" is the authoritative lookup key in the objects.inv.json
files. All other "std:..." definitions are fallback only.

This patch ensures that 'std:label' receives priority, and all
other lookups are only in case of "old style" permalinks or
file name based permalinks.

The unit test is adapted to also contain the two new link
types "console-command" and "console-command-list" (together
with fallback resolve for "confval" and "confval-menu").

The unit test fixtures are also updated.

"std:label" is the authoritative lookup key in the objects.inv.json
files. All other "std:..." definitions are fallback only.

This patch ensures that 'std:label' receives priority, and all
other lookups are only in case of "old style" permalinks or
file name based permalinks.

The unit test is adapted to also contain the two new link
types "console-command" and "console-command-list" (together
with fallback resolve for "confval" and "confval-menu").
legacy_hook/src/DocumentationLinker.php Outdated Show resolved Hide resolved
legacy_hook/src/DocumentationLinker.php Outdated Show resolved Hide resolved
legacy_hook/src/DocumentationLinker.php Outdated Show resolved Hide resolved
garvinhicking and others added 2 commits January 23, 2025 07:39
Co-authored-by: Andreas Kienast <[email protected]>
Also refactor index key matching to use simplified version.
@andreaskienast andreaskienast merged commit de2784d into TYPO3GmbH:develop Jan 23, 2025
2 of 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.

3 participants