Skip to content

Commit

Permalink
Fix sharing link
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Nov 30, 2024
1 parent 83bd45d commit 8c69d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function useFHIRPathUI() {
};

const handleShare = () => {
const currentUrl = window.location.origin;
const currentUrl = window.location.href.split('?')[0];
const shareUrl = `${currentUrl}?url=${encodeURIComponent(url)}&expression=${encodeURIComponent(expression)}`;
setShareLink(shareUrl);
navigator.clipboard.writeText(shareUrl).then(() => {
Expand Down

0 comments on commit 8c69d1e

Please sign in to comment.