We should use the same algorithm in order to avoid inconsistencies between server-side and client-side navigation. This PR (https://github.com/vtex-apps/render-runtime/pull/328) will fix some issues, but it's not perfect as @athoscouto noticed: https://github.com/vtex-apps/render-runtime/pull/328#pullrequestreview-253084270