Prevent generating navigation history. (#143)

If the  function is available, it will be
used to update the current URL when navigation rather than setting
 directly. This effectively replaces the current
navigation entry instead of creating a new one.