diff --git a/torisetsu/src/jsMain/kotlin/components/base/XShareButton.kt b/torisetsu/src/jsMain/kotlin/components/base/XShareButton.kt index d898a99..8e390fb 100644 --- a/torisetsu/src/jsMain/kotlin/components/base/XShareButton.kt +++ b/torisetsu/src/jsMain/kotlin/components/base/XShareButton.kt @@ -1,6 +1,7 @@ package components.base import androidx.compose.runtime.Composable +import kotlinx.browser.window import org.jetbrains.compose.web.attributes.ATarget import org.jetbrains.compose.web.attributes.target import org.jetbrains.compose.web.dom.A @@ -11,7 +12,7 @@ import org.jetbrains.compose.web.dom.Text @Composable fun XShareButton() { A( - href = "https://twitter.com/intent/tweet?text=私のトリタイプが見つかりました!&url=https://m3dev.github.io/torisetsu&hashtags=エンジニアトリ診断", + href = "https://twitter.com/intent/tweet?text=私のトリタイプが見つかりました!&url=" + window.location.href + "&hashtags=エンジニアトリ診断", attrs = { target(ATarget.Blank) classes(XShareButtonStyle.rootElm)