-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the content URL generator (see #6596)
Description ----------- Finally! This is a first step towards the _Content URL Generator_. I was able to get this wrapped up so that **generating the URL** is separated from **matching a URL (with parameters)**. This is only the part about generating URLs for any content, since the other part is way more complex and not finished yet. Be aware that this deprecates the `PageModel::getFrontendUrl`/`getAbsoluteUrl` methods, but it does not replace it in all places. Probably not everywhere in core-bundle, and currently in non of the add-on bundles. This does not yet implement content URL generator for any of our add-on bundles (like news and events), because that alone are dozens of file to adjust and will be easier to review in separate PRs (I do have some of that code available locally though, so I can quickly add them once this is merged). - [x] Replaces #6547 - [x] (Probably) requires #6595 and #6594 - [x] Needs tests on the new services Commits ------- ba2bd8e Implement the content URL generator 83d3f27 Various improvements, CS and tests 9636820 Use the ContentUrlGenerator in the SERP widget ad1e137 Correctly mark URL result as redirect cc27676 Cache exceptions thrown when generating a content URL 279308a Merge remote-tracking branch 'upstream/5.x' into feature/content-url-… 71c1abd Remove unnecessary optional parameters 53f4cda Re-add the reference type bbbb67a Fix existing code for absolute URLs b8177b8 Fixed tests 873e033 Skip cache if content or parameters are not serializable (e.g. contai… 1903333 Tests for ContentUrlGenerator 8fd38de Fixes from code review ba10d11 Tests for resolvers 74267e8 Fixed argument of AuthenticationSuccessHandler 9a13b4e Fixed phpstan error 419360d Fixed phpstan error 5487c57 Drop the obsolete SerpPreview url_callback for tl_page 03b5b56 Replace PageModel::getFrontendUrl and getAbsoluteUrl 2ea63d7 Added review comments 23b8f7b Fix CI 223644d Replace PageModel::getFrontendUrl and getAbsoluteUrl 4303856 Correctly make URLs absolute 34cf962 Fixed tests a941ccd Rename the ContentUrlResult ba24a4a Revert "Rename the ContentUrlResult" 9b529db Use NULL instead of ContentUrlResult::abstain() f5fe023 Remove the null option
- Loading branch information
Showing
56 changed files
with
1,685 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.