replaceUrl: true

 Using "replaceUrl" In Order To Honor The Back-Button While Chaining Absolute Redirects In Angular 7.2.13 (bennadel.com)


this.router.navigateByUrl(

this.redirectTo,

// By replacing the current URL in the history, we keep the Browser's Back

// Button behavior in tact. This will allow the user to easily navigate back

// to the previous URL without getting caught in a redirect.

{

replaceUrl: true

}

);

Không có nhận xét nào:

xóa toàn bộ commit

  Cách chuẩn & đơn giản nhất (Khuyến nghị) Mục tiêu Xóa toàn bộ commit history Giữ nguyên code hiện tại main chỉ còn 1 commit...