Add default argument for `back` method

If the `back` method is called when the site loads, the `to` method will throw an error because obviously it can't navigate to `null`. This update allows for an optional `default` argument to `back` which will be used if the previous page is null.