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:

URL parameters with React Router

 https://ui.dev/react-router-url-parameters If you're reading this, you're probably familiar with the idea of function parameters. T...