Skip to content

Commit e987876

Browse files
authored
Merge pull request #1165 from serlo/staging
Deployment
2 parents 192cf60 + 53fbd23 commit e987876

File tree

4 files changed

+179
-184
lines changed

4 files changed

+179
-184
lines changed

__tests__/redirects.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@ test('de.serlo.org/datenschutz', async () => {
4646
})
4747

4848
describe('Imprint', () => {
49-
test.each(['/impressum', '/imprint', '/legal'])(
50-
'de.serlo.org%s',
51-
async (pathname) => {
52-
const response = await env.fetch({ subdomain: 'de', pathname })
49+
test.each(['/impressum', '/imprint'])('de.serlo.org%s', async (pathname) => {
50+
const response = await env.fetch({ subdomain: 'de', pathname })
5351

54-
const target = 'https://chancenwerk.de/impressum/'
55-
expectToBeRedirectTo(response, target, 302)
56-
},
57-
)
52+
const target = 'https://de.serlo.org/legal'
53+
expectToBeRedirectTo(response, target, 301)
54+
})
5855
})
5956

6057
test('de.serlo.org/nutzungsbedingungen ', async () => {

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,37 @@
3636
"toucan-js": "^4.1.1"
3737
},
3838
"devDependencies": {
39-
"@cloudflare/workers-types": "^4.20251011.0",
39+
"@cloudflare/workers-types": "^4.20251014.0",
4040
"@eslint/compat": "^1.4.0",
4141
"@eslint/eslintrc": "^3.3.1",
42-
"@eslint/js": "^9.37.0",
42+
"@eslint/js": "^9.38.0",
4343
"@iarna/toml": "^2.2.5",
4444
"@jest/globals": "^30.2.0",
45-
"@sentry/core": "^10.19.0",
45+
"@sentry/core": "^10.21.0",
4646
"@testing-library/jest-dom": "^6.9.1",
4747
"@types/iarna__toml": "^2.0.5",
4848
"@types/jest": "^30.0.0",
49-
"@types/node": "24.7.2",
50-
"@typescript-eslint/eslint-plugin": "^8.46.1",
51-
"@typescript-eslint/parser": "^8.46.1",
49+
"@types/node": "24.9.1",
50+
"@typescript-eslint/eslint-plugin": "^8.46.2",
51+
"@typescript-eslint/parser": "^8.46.2",
5252
"cross-env": "^10.1.0",
5353
"depcheck": "^1.4.7",
54-
"eslint": "^9.37.0",
54+
"eslint": "^9.38.0",
5555
"eslint-config-prettier": "^10.1.8",
5656
"eslint-plugin-deprecation": "^3.0.0",
5757
"eslint-plugin-import": "^2.32.0",
5858
"eslint-plugin-react": "^7.37.5",
5959
"globals": "^16.4.0",
6060
"jest": "^30.2.0",
61-
"msw": "^2.11.5",
61+
"msw": "^2.11.6",
6262
"npm-run-all": "^4.1.5",
6363
"prettier": "^3.6.2",
6464
"prettier-plugin-packagejson": "^2.5.19",
6565
"prettier-plugin-sh": "^0.18.0",
6666
"ts-jest": "^29.4.5",
6767
"ts-unused-exports": "^11.0.1",
6868
"typescript": "^5.9.3",
69-
"wrangler": "^4.42.2"
69+
"wrangler": "^4.44.0"
7070
},
7171
"packageManager": "yarn@3.6.0",
7272
"engines": {

src/redirects.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export function redirects(request: Request, env: CFEnvironment) {
5151
return Response.redirect('https://de.serlo.org/privacy', 301)
5252
case '/impressum':
5353
case '/imprint':
54-
case '/legal':
55-
return Response.redirect('https://chancenwerk.de/impressum/', 302)
54+
return Response.redirect('https://de.serlo.org/legal', 301)
5655
case '/nutzungsbedingungen':
5756
case '/21654':
5857
case '/21654/nutzungsbedingungen-und-urheberrecht':

0 commit comments

Comments
 (0)