Skip to content

Commit 3d50b69

Browse files
authored
Merge pull request #42 from kc3hack/hotfix-qrcode-url
location.origin を含めてURLを作る
2 parents bcdfbe7 + bcbcc78 commit 3d50b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/pages/index.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const TopPage = () => {
3535
}
3636

3737
// URL を作る
38-
const uri = `/r/${encodeURIComponent(payload.id)}`;
38+
const uri = `${location.origin}/r/${encodeURIComponent(payload.id)}`;
3939

4040
// モーダルを開く
4141
setUrl(uri);

0 commit comments

Comments
 (0)