Skip to content

Commit 855af3e

Browse files
docs: fix tutorial links (#12860)
Co-authored-by: Ben McCann <[email protected]>
1 parent 820f3e7 commit 855af3e

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

documentation/docs/10-getting-started/10-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44

55
## Before we begin
66

7-
> [!NOTE] If you're new to Svelte or SvelteKit we recommend checking out the [interactive tutorial](../tutorial/kit).
7+
> [!NOTE] If you're new to Svelte or SvelteKit we recommend checking out the [interactive tutorial](/tutorial/kit).
88
>
99
> If you get stuck, reach out for help in the [Discord chatroom](https://svelte.dev/chat).
1010

documentation/docs/20-core-concepts/10-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,6 @@ If components and modules are needed by multiple routes, it's a good idea to put
394394
395395
## Further reading
396396
397-
- [Tutorial: Routing](../tutorial/kit/pages)
398-
- [Tutorial: API routes](../tutorial/kit/get-handlers)
397+
- [Tutorial: Routing](/tutorial/kit/pages)
398+
- [Tutorial: API routes](/tutorial/kit/get-handlers)
399399
- [Docs: Advanced routing](advanced-routing)

documentation/docs/20-core-concepts/20-load.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,6 @@ Putting an auth guard in `+layout.server.js` requires all child pages to call `a
693693

694694
## Further reading
695695

696-
- [Tutorial: Loading data](../tutorial/kit/page-data)
697-
- [Tutorial: Errors and redirects](../tutorial/kit/error-basics)
698-
- [Tutorial: Advanced loading](../tutorial/kit/await-parent)
696+
- [Tutorial: Loading data](/tutorial/kit/page-data)
697+
- [Tutorial: Errors and redirects](/tutorial/kit/error-basics)
698+
- [Tutorial: Advanced loading](/tutorial/kit/await-parent)

documentation/docs/20-core-concepts/30-form-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,4 +518,4 @@ Submitting this form will navigate to `/search?q=...` and invoke your load funct
518518
519519
## Further reading
520520
521-
- [Tutorial: Forms](../tutorial/kit/the-form-element)
521+
- [Tutorial: Forms](/tutorial/kit/the-form-element)

documentation/docs/20-core-concepts/40-page-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,4 @@ export const config = {
219219

220220
## Further reading
221221

222-
- [Tutorial: Page options](../tutorial/kit/page-options)
222+
- [Tutorial: Page options](/tutorial/kit/page-options)

documentation/docs/20-core-concepts/50-state-management.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ If you're not using SSR, then there's no risk of accidentally exposing one user'
8282

8383
## Using stores with context
8484

85-
You might wonder how we're able to use `$page.data` and other [app stores]($app-stores) if we can't use our own stores. The answer is that app stores on the server use Svelte's [context API](../tutorial/svelte/context-api) — the store is attached to the component tree with `setContext`, and when you subscribe you retrieve it with `getContext`. We can do the same thing with our own stores:
85+
You might wonder how we're able to use `$page.data` and other [app stores]($app-stores) if we can't use our own stores. The answer is that app stores on the server use Svelte's [context API](/tutorial/svelte/context-api) — the store is attached to the component tree with `setContext`, and when you subscribe you retrieve it with `getContext`. We can do the same thing with our own stores:
8686

8787
```svelte
8888
<!--- file: src/routes/+layout.svelte --->
@@ -143,7 +143,7 @@ When you navigate around your application, SvelteKit reuses existing layout and
143143

144144
...then navigating from `/blog/my-short-post` to `/blog/my-long-post` won't cause the layout, page and any other components within to be destroyed and recreated. Instead the `data` prop (and by extension `data.title` and `data.content`) will update (as it would with any other Svelte component) and, because the code isn't rerunning, lifecycle methods like `onMount` and `onDestroy` won't rerun and `estimatedReadingTime` won't be recalculated.
145145

146-
Instead, we need to make the value [_reactive_](../tutorial/svelte/state):
146+
Instead, we need to make the value [_reactive_](/tutorial/svelte/state):
147147

148148
```svelte
149149
/// file: src/routes/blog/[slug]/+page.svelte

documentation/docs/30-advanced/10-advanced-routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,4 +287,4 @@ export function load(event) {
287287
288288
## Further reading
289289
290-
- [Tutorial: Advanced Routing](../tutorial/kit/optional-params)
290+
- [Tutorial: Advanced Routing](/tutorial/kit/optional-params)

documentation/docs/30-advanced/20-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,4 @@ Using `reroute` will _not_ change the contents of the browser's address bar, or
270270

271271
## Further reading
272272

273-
- [Tutorial: Hooks](../tutorial/kit/handle)
273+
- [Tutorial: Hooks](/tutorial/kit/handle)

documentation/docs/30-advanced/25-errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,5 @@ This interface always includes a `message: string` property.
144144

145145
## Further reading
146146

147-
- [Tutorial: Errors and redirects](../tutorial/kit/error-basics)
148-
- [Tutorial: Hooks](../tutorial/kit/handle)
147+
- [Tutorial: Errors and redirects](/tutorial/kit/error-basics)
148+
- [Tutorial: Hooks](/tutorial/kit/handle)

documentation/docs/30-advanced/50-server-only-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ This feature also works with dynamic imports, even interpolated ones like ``awai
6161
6262
## Further reading
6363

64-
- [Tutorial: Environment variables](../tutorial/kit/env-static-private)
64+
- [Tutorial: Environment variables](/tutorial/kit/env-static-private)

0 commit comments

Comments
 (0)