Ionic-framework: DeepLinker - Navigate by Url

Created on 4 Oct 2016  路  2Comments  路  Source: ionic-team/ionic-framework

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

stale issue

All 2 comments

any news on this one?

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danbucholtz picture danbucholtz  路  3Comments

alan-agius4 picture alan-agius4  路  3Comments

BilelKrichen picture BilelKrichen  路  3Comments

alexbainbridge picture alexbainbridge  路  3Comments

brandyscarney picture brandyscarney  路  3Comments