Skip to content

Commit 692932f

Browse files
fix: point Get started CTA at /docs/getting-started/introduction
Docusaurus 3 doesn't auto-generate a category index page, so /docs/getting-started/ 404s on jss.live. The canonical URL for the intro page is /docs/getting-started/introduction — point the landing's primary CTA there.
1 parent 02ceb7d commit 692932f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/ui/server-root.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Welcome</h1>
5858
<p class="explainer">This is a Solid pod server. Solid is an open standard for personal data — your data lives in pods you own, and apps connect to it.</p>
5959

6060
<div class="actions">
61-
<a href="https://jss.live/docs/getting-started/" class="btn btn-primary">Get started →</a>
61+
<a href="https://jss.live/docs/getting-started/introduction" class="btn btn-primary">Get started →</a>
6262
<a href="/idp/register" class="btn btn-secondary" data-cond="register" hidden>Sign up</a>
6363
<a href="/idp" class="btn btn-secondary" data-cond="login" hidden>Sign in</a>
6464
</div>

test/server-root.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ describe('renderServerRoot', () => {
123123
assert.match(multi, /<code>multi-user<\/code>/);
124124
});
125125

126-
it('always emits the Get started button pointing at the docs', () => {
126+
it('always emits the Get started button pointing at the docs introduction', () => {
127127
const html = renderServerRoot({ version: '1.0.0' });
128-
assert.match(html, /href="https:\/\/jss\.live\/docs\/getting-started\/"/);
128+
// The canonical URL is the introduction page, not the category.
129+
// Docusaurus 3 doesn't auto-generate a category index page, so
130+
// /docs/getting-started/ would 404. Link to the real document.
131+
assert.match(html, /href="https:\/\/jss\.live\/docs\/getting-started\/introduction"/);
129132
assert.match(html, /Get started/);
130133
});
131134

0 commit comments

Comments
 (0)