Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

clearHistory doesn't work with router-outlet #685

Copy link
Copy link
Open
@sebawita

Description

@sebawita
Issue body actions

When navigating with clearHistory flag set to true with router-outlet, the history doesn't get cleared. So the flag has no effect at all.
Button text="login" [nsRouterLink]="['/main']" clearHistory="true"></Button>

The same applies when calling navigate through code:

navigateHome() {
    this.routerExtensions.navigate(['/home'], { clearHistory: true });
}

When I call the canGoBack() after navigating I always get true.
this.routerExtensions.canGoBack() => returns true;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.