Skip to content

Commit

Permalink
fix Kusama Getting Started URL
Browse files Browse the repository at this point in the history
  • Loading branch information
DrW3RK committed Jun 28, 2024
1 parent efb5818 commit 3d8ef54
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion kusama-guide/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function HomeSplash() {
<button className="kusama-mainpage-build-btn-main homepage-font">
<a
className="homepage-font-start"
href="../docs/kusama-getting-started"
href={useDocUrl("kusama-getting-started")}
>
GET STARTED WITH KUSAMA
</a>
Expand Down Expand Up @@ -161,3 +161,10 @@ export default function Index() {
</Layout>
);
}

function useDocUrl(url) {
const { siteConfig } = useDocusaurusContext();
const { baseUrl } = siteConfig;
const docsPart = "docs/";
return `${baseUrl}${docsPart}${url}`;
}

0 comments on commit 3d8ef54

Please sign in to comment.