Skip to content

Commit 8aae350

Browse files
authored
Merge pull request #50 from DEVxNetwork/cursor/fix-profile-handle-parsing-with-equals-sign-composer-1-f043
2 parents ba4ad24 + e634aa4 commit 8aae350

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/whois/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ export default function Who() {
4848
if (typeof window === "undefined") return ""
4949
const search = window.location.search
5050
if (search.startsWith("?")) {
51-
return search.substring(1).split("&")[0]
51+
const firstParam = search.substring(1).split("&")[0]
52+
// Handle cases like "sam=" by splitting on = and taking the part before it
53+
return firstParam.split("=")[0]
5254
}
5355
return ""
5456
}

0 commit comments

Comments
 (0)