replace method
Replaces the current route without leaving a history entry.
Implementation
void replace(String path) {
final normalized = path.startsWith('/') ? path : '/$path';
_window.location.replace('#$normalized');
_sync();
}
Replaces the current route without leaving a history entry.
void replace(String path) {
final normalized = path.startsWith('/') ? path : '/$path';
_window.location.replace('#$normalized');
_sync();
}