diff --git a/lib/client.dart b/lib/client.dart index 45cbd02..a4d4014 100644 --- a/lib/client.dart +++ b/lib/client.dart @@ -714,14 +714,13 @@ class Router { }); void _go(String path, String title, bool replace) { - if (title == null) title = ''; if (_useFragment) { if (replace) { _window.location.replace('#$path'); } else { _window.location.assign('#$path'); } - (_window.document as HtmlDocument).title = title; + if (title != null)(_window.document as HtmlDocument).title = title; } else { if (replace) { _window.history.replaceState(null, title, path);