-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move redirect handling from Middleware to [[...path]]/page and resolv…
…e them on demand (#2638) Major advantage is that we don't have to load all redirects into memory and get independent of the number of redirects. Theoretically incompatible: if a redirect and page with the same path exist, previously the redirect was used, now the page is used. One tricky part is that redirects are not language scoped, but pages are: - for redirects I take the language param and put append it to the source path - to support redirects with "invalid" languages (from the page tree perspective) - for example `/redirect-10` I had to avoid sending an invalid `scope.language` (would be `redirect-10`) by adding the `@skip` directive - else the api responds with an Access Denied error as the scope is not allowed Co-authored-by: Johannes Obermair <[email protected]>
- Loading branch information
1 parent
da49d05
commit 44ec9eb
Showing
9 changed files
with
87 additions
and
154 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@comet/cms-api": minor | ||
--- | ||
|
||
Redirects: Add `redirectBySource` query that can be used to query for a single redirect by source |
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 was deleted.
Oops, something went wrong.
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