mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 07:11:15 +03:00
Additional ? check
This commit is contained in:
parent
6b5a98ebb3
commit
886d78bde8
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const Link = forwardRef((props, ref) => {
|
|||
const { to, ...restProps } = props;
|
||||
|
||||
// Handle encodeURIComponent of searchParams values
|
||||
if (!!hash && hash !== '/') {
|
||||
if (!!hash && hash !== '/' && hash.includes('?')) {
|
||||
const parsedHash = new URL(hash, location.origin); // Fake base URL
|
||||
if (parsedHash.searchParams.size) {
|
||||
const searchParamsStr = Array.from(parsedHash.searchParams.entries())
|
||||
|
|
Loading…
Add table
Reference in a new issue