mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Use location.origin for Edit with Shakespeare URL
This commit is contained in:
1 file changed
+2
-2
@@ -695,7 +695,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
|
||||
}
|
||||
|
||||
// Create the Shakespeare clone URL by encoding the origin URL
|
||||
const shakespeareURL = `https://shakespeare.diy/clone?url=${encodeURIComponent(originUrl.trim())}`;
|
||||
const shakespeareURL = `${location.origin}/clone?url=${encodeURIComponent(originUrl.trim())}`;
|
||||
|
||||
// Try modern clipboard API first
|
||||
try {
|
||||
@@ -815,7 +815,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
|
||||
</Label>
|
||||
<div className="flex gap-2">
|
||||
<Input
|
||||
value={`https://shakespeare.diy/clone?url=${encodeURIComponent(originUrl.trim())}`}
|
||||
value={`${location.origin}/clone?url=${encodeURIComponent(originUrl.trim())}`}
|
||||
readOnly
|
||||
className="flex-1 text-xs text-muted-foreground bg-muted cursor-default h-8 truncate"
|
||||
tabIndex={-1}
|
||||
|
||||
Reference in new issue
Block a user