Skip to content

Commit e9bfb52

Browse files
committed
fixup! fix(@angular/ssr): resolve relative redirects against the parent route
1 parent 816ad70 commit e9bfb52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/angular/ssr/test/app_spec.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ describe('AngularServerApp', () => {
206206
expect(response?.status).toBe(302);
207207
});
208208

209-
it('should correctly handle relative nested redirects', async () => {
209+
it('should correctly handle relative redirects on multi-segment routes', async () => {
210210
const response = await app.handle(new Request('http://localhost/redirect/relative'));
211211
expect(response?.headers.get('location')).toBe('/home');
212212
expect(response?.status).toBe(302);
213213
});
214214

215-
it('should correctly handle relative nested redirects with parameter', async () => {
215+
it('should correctly handle relative redirects on multi-segment routes with parameter', async () => {
216216
const response = await app.handle(new Request('http://localhost/redirect/param/relative'));
217217
expect(response?.headers.get('location')).toBe('/home');
218218
expect(response?.status).toBe(302);
@@ -224,7 +224,7 @@ describe('AngularServerApp', () => {
224224
expect(response?.status).toBe(302);
225225
});
226226

227-
it('should correctly handle absolute nested redirects', async () => {
227+
it('should correctly handle absolute redirects on multi-segment routes', async () => {
228228
const response = await app.handle(new Request('http://localhost/redirect/absolute'));
229229
expect(response?.headers.get('location')).toBe('/home');
230230
expect(response?.status).toBe(302);

0 commit comments

Comments
 (0)