replaceState method
Implementation
@override
void replaceState(Object? ctx, String title, String path, String query) {
internalTitle = title;
var url = path + (query.isNotEmpty ? ('?' + query) : '');
internalPath = url;
var externalUrl = prepareExternalUrl(url);
urlChanges.add('replace: ' + externalUrl);
}