Skip to content

Commit

Permalink
[BUGFIX] Redirect any non-main version of the Core Changelog to main (#…
Browse files Browse the repository at this point in the history
…202)

* [BUGFIX] Redirect any non-main version of the Core Changelog to main

As the Changelog of version main contains all other versions we only keep that one version. 

When a new tag is released the rendering of other versions is triggered (yet to be solved) and we have to delete them manually. Sometimes Google has already indexed them.

* Update redirects.conf

* Update config/nginx/redirects.conf

Co-authored-by: Andreas Kienast <[email protected]>

---------

Co-authored-by: Andreas Kienast <[email protected]>
  • Loading branch information
linawolf and andreaskienast authored Oct 28, 2024
1 parent 1db5f33 commit 803b7c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/nginx/redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,11 @@ location ~ ^/typo3cms/extensions/core(.*) {
return 303 /c/typo3/cms-core/main/en-us$1;
}

# Redirect for any version of the Changelog to main. We only support the main branch here
location ~ ^/c/typo3/cms-core/(?!main)([^/]+)/en-us(.*) {
return 303 /c/typo3/cms-core/main/en-us$2;
}

# friendsoftypo3/adodb
location ~ ^typo3cms/extensions/adodb/8.4.0(.*) {
return 303 /p/friendsoftypo3/adodb/8.4/en-us$1;
Expand Down

0 comments on commit 803b7c9

Please sign in to comment.