URL / Routing Demo — Improved & Bug‑fixed

This page demonstrates safe URL updates using hash, history API, and navigation. No data is sent anywhere. Use locally for learning.

Current state

Visible URL:

        
History state (latest):
{ }

Actions

Tiny SPA router

Use the push/replace buttons or click the links below. The router will render without a full page reload.

Note: History API works on modern browsers. Some older browsers or strict private modes may limit behavior. When opening via file://, paths will include the full filesystem path — expected behavior.