We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2020dce commit f06ac7dCopy full SHA for f06ac7d
1 file changed
pwa/client/src/pages/SetupWizard.jsx
@@ -61,13 +61,17 @@ export default function SetupWizard() {
61
if (code && code.data) {
62
try {
63
const parsed = new URL(code.data);
64
+ // New format: http://<ip>/claim — open directly (receiver handles redirect)
65
+ if (parsed.pathname === '/claim') {
66
+ stopScan();
67
+ window.location.href = code.data;
68
+ }
69
+ // Old format: https://cloud/link?id=...&token=...&ip=...
70
const id = parsed.searchParams.get('id');
71
const token = parsed.searchParams.get('token');
72
const ip = parsed.searchParams.get('ip');
-
73
if (id && token && ip) {
74
stopScan();
- // Redirect to LinkDevice page which handles the full claim flow
75
window.location.href = `/link?id=${id}&token=${token}&ip=${ip}`;
76
}
77
} catch {} // Not a valid URL — keep scanning
0 commit comments