Closed madrobby closed 1 month ago
Take it back, you can actually set it!
@madrobby Leaving this for others who see this.
Astro.requests.url
which I believe uses the base url you set in your astro config. You can see this working on my blog and the source code that controls it.url
can be overridden if you want, you can include it with SocialShare
component or any of the individual buttons.e.g.
<SocialShare
url="https://whateverurlyouwant.com"
description="Description of the page/post"
via="YourTwitterAccount"
title="Page Title"
/>
Because
url
is based on the Astro request, the buttons fail to correctly generate when used with static sites generated by Astro (they all point tolocalhost:4321
).