Skip to content

After language is switch, back button redirect into 404 #155

@qubiack

Description

@qubiack

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if similar feature request does not exist
[ ] support request => Suggested place for help and support is [stackoverflow](https://stackoverflow.com/), search for similar question before posting

Description

When I have in router path with children path, and I'm on child path after language is switch, back button in browser redirect into 404 error page. I switch language by using:

this.localize.changeLanguage(lang);

If I'm on first level page (not on children path) everything work good, and back button work.

I have this error after update Angular from 5.X into 7.1.0

🌍 Your Environment

Angular Version:


Angular CLI: 7.1.0
Node: 11.5.0
OS: darwin x64
Angular: 7.1.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.11.0
@angular-devkit/build-angular     0.11.0
@angular-devkit/build-optimizer   0.11.0
@angular-devkit/build-webpack     0.11.0
@angular-devkit/core              7.1.0
@angular-devkit/schematics        7.1.0
@angular/cli                      7.1.0
@ngtools/webpack                  7.1.0
@schematics/angular               7.1.0
@schematics/update                0.11.0
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.23.1

Localize Router Version:


...
        "localize-router": "^2.0.0-RC.2",
        "localize-router-http-loader": "^1.0.2",
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions