Programmatic Navigation

These buttons use router.push() and router.replace() to navigate. The progress bar should work for both.

router.push()

Adds a new entry to the browser history stack.

router.replace()

Replaces the current history entry (uses replaceState).

router.back() / router.forward()

Browser history navigation (triggers popstate).