Skip to content

Commit

Permalink
Fix missing scope in share url builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bespoyasov committed Oct 7, 2023
1 parent fa51d6f commit a108de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{/if}
</nav>

<Support metadata={data.meta} />
<Support {scope} metadata={data.meta} />

<style>
.post {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Support.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@

<script>
export let metadata;
export let scope;
const text = encodeURIComponent(metadata.title);
const url = `${site.url}/${metadata.slug}`;
const url = `${site.url}/${scope}/${metadata.slug}`;
const shareUrl = `https://twitter.com/intent/tweet?text=${text}&url=${url}`;
</script>

Expand Down

0 comments on commit a108de6

Please sign in to comment.