We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba4ad24 + e634aa4 commit 8aae350Copy full SHA for 8aae350
1 file changed
app/whois/page.tsx
@@ -48,7 +48,9 @@ export default function Who() {
48
if (typeof window === "undefined") return ""
49
const search = window.location.search
50
if (search.startsWith("?")) {
51
- return search.substring(1).split("&")[0]
+ 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]
54
}
55
return ""
56
0 commit comments