diff --git a/documentation/docs/98-reference/.generated/compile-warnings.md b/documentation/docs/98-reference/.generated/compile-warnings.md index 82678d0585..8d0aedbc07 100644 --- a/documentation/docs/98-reference/.generated/compile-warnings.md +++ b/documentation/docs/98-reference/.generated/compile-warnings.md @@ -706,7 +706,7 @@ Component has unused export property '%name%'. If it is for external reference o ### head_in_component ``` -Using `` (%location%) will likely lead to runtime errors. Use [``](https://svelte.dev/e/head_in_component) instead +Using `` (%location%) will likely lead to runtime errors. Use [``](https://svelte.dev/docs/svelte/svelte-head) instead ``` ### legacy_code diff --git a/packages/svelte/messages/compile-warnings/template.md b/packages/svelte/messages/compile-warnings/template.md index 8fe754ce56..1241b58d08 100644 --- a/packages/svelte/messages/compile-warnings/template.md +++ b/packages/svelte/messages/compile-warnings/template.md @@ -85,7 +85,7 @@ See [the migration guide](v5-migration-guide#Event-changes) for more info. ## head_in_component -> Using `` (%location%) will likely lead to runtime errors. Use [``](https://svelte.dev/e/head_in_component) instead +> Using `` (%location%) will likely lead to runtime errors. Use [``](https://svelte.dev/docs/svelte/svelte-head) instead ## node_invalid_placement_ssr diff --git a/packages/svelte/src/compiler/warnings.js b/packages/svelte/src/compiler/warnings.js index 5e1ec79964..c916d34d1a 100644 --- a/packages/svelte/src/compiler/warnings.js +++ b/packages/svelte/src/compiler/warnings.js @@ -787,12 +787,12 @@ export function event_directive_deprecated(node, name) { } /** - * Using `` (%location%) will likely lead to runtime errors. Use [``](https://svelte.dev/e/head_in_component) instead + * Using `` (%location%) will likely lead to runtime errors. Use [``](https://svelte.dev/docs/svelte/svelte-head) instead * @param {null | NodeLike} node * @param {string} location */ export function head_in_component(node, location) { - w(node, 'head_in_component', `Using \`\` (${location}) will likely lead to runtime errors. Use [\`\`](https://svelte.dev/e/head_in_component) instead\nhttps://svelte.dev/e/head_in_component`); + w(node, 'head_in_component', `Using \`\` (${location}) will likely lead to runtime errors. Use [\`\`](https://svelte.dev/docs/svelte/svelte-head) instead\nhttps://svelte.dev/e/head_in_component`); } /**