Skip to content

Commit

Permalink
fix broken url in navigator share
Browse files Browse the repository at this point in the history
  • Loading branch information
r0hitm committed Jan 21, 2025
1 parent d95b12a commit 87ef153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ShareLinks.astro
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const shareLinks = [
await navigator.share({
title: document.title,
text: "Check out this amazing post!",
url: URL.toString(),
url: document.location.href,
});
} catch (err) {
console.error("Error sharing:", err);
Expand Down

0 comments on commit 87ef153

Please sign in to comment.