HenrikJoreteg / HenrikJoreteg/set-query-string

Document location's hash gets removed

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11
Forks
4
PR merge metrics
No merged PRs in 30d

Description

If my URL is

```
https://foo.com/page#anchor
```

and I call `setQuery({ a: 1 })`, the URL becomes

```
https://foo.com/page?a=1
```

when I would expect it to retain the hash to become

```
https://foo.com/page?a=1#anchor
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.