I am curious to know if it is possible to add a fragment to a view model:

```
return new ViewModel([]);

```

Returns my view to <https://example.com/view>

However is it possible to set this dynamically to add a fragment?

```
return new ViewModel("#fragment")

```

To return to <https://example.com/view#fragment>

The use case, have a js login/register view that is either <https://example.com/view#login> or <https://example.com/view#register> and want to return to the correct view...

EDIT
Obviously, this can be done using a re-direct, however, in the case of returning form errors, ViewModel needs to be used...