Skip to content

DeepLinker - Navigate by Url #8482

@stephenlautier

Description

@stephenlautier

Short description of the problem:

Currently we're trying to navigate by URL, by consuming the DeepLinker (as an API), however there's no public API which does that; the closest thing I found was urlChange(browserUrl: string) which doesn't update the URL due to the below:

// urlChange
appRootNav.goToRoot({
    updateUrl: false,   // <---
    isNavRoot: true
});

Another issue, the URL is not normalized when its a path, meaning the base will not be stripped out.

What behavior are you expecting?

Having an api within DeepLinker such as navigateByUrl(url: string)

NavigateByUrl

  • Normalize Url (to remove base)
  • Update browser url
  • Transition (setRoot)
    *pretty much what DeepLinker.urlChange does but updateUrl: true + normalization

Which Ionic Version? 2.x

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