Skip to content

Commit dc396f1

Browse files
committed
fix(apps): preserve path when performing redirects for blog.angular.io (#2297)
Ensure that the path for the url is preserved when redirecting from blog.angular.io to blog.angular.dev PR Close #2297
1 parent 23b527f commit dc396f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/functions/dns-redirecting/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const dnsRedirecting = functions
4141
response.redirect(redirectType, 'https://angular.dev/cli');
4242
}
4343
if (hostname === 'blog.angular.io') {
44-
response.redirect(redirectType, 'https://blog.angular.dev');
44+
response.redirect(redirectType, `https://blog.angular.dev${request.originalUrl}`);
4545
}
4646

4747
// If no redirect is matched, we return a failure message

0 commit comments

Comments
 (0)