Skip to content

Commit 7413bb0

Browse files
committed
bugfix(core): fix redirect decorator to handle empty strings
1 parent 549e292 commit 7413bb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/router/router-execution-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export class RouterExecutionContext {
389389
await this.responseController.render(result, res, renderTemplate);
390390
};
391391
}
392-
if (redirectResponse && redirectResponse.url) {
392+
if (redirectResponse && typeof redirectResponse.url === 'string') {
393393
return async <TResult, TResponse>(result: TResult, res: TResponse) => {
394394
await this.responseController.redirect(result, res, redirectResponse);
395395
};

0 commit comments

Comments
 (0)