Example
Query Parameter Management:
router('?filter=active&sort=desc') // Add/update query params
router('?filter=') // Remove a query param
router('?') // Clear all query params
Navigation:
router('/dashboard') // Navigate to absolute path
router('profile') // Navigate to relative path
router('https://example.com') // Navigate to external URL
router('#contact-section') // Navigate to page anchor
With Scroll Behavior:
router('/about', { scrollToTop: true }) // Navigate and scroll to top
file: router.ts