Skip to content

Commit d373280

Browse files
authored
docs: relative links that were absolute (#83317)
Certain relative links were absolute, which renders them with the -> external arrow - might have been a decision per case, but AFAIK, this is only helpful for those links that are now redirecting to other content
1 parent 886f543 commit d373280

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

docs/01-app/02-guides/incremental-static-regeneration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Here's how this example works:
9797
3. After 60 seconds has passed, the next request will still return the cached (now stale) page
9898
4. The cache is invalidated and a new version of the page begins generating in the background
9999
5. Once generated successfully, the next request will return the updated page and cache it for subsequent requests
100-
6. If `/blog/26` is requested, and it exists, the page will be generated on-demand. This behavior can be changed by using a different [dynamicParams](https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams) value. However, if the post does not exist, then 404 is returned.
100+
6. If `/blog/26` is requested, and it exists, the page will be generated on-demand. This behavior can be changed by using a different [dynamicParams](/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams) value. However, if the post does not exist, then 404 is returned.
101101

102102
</AppOnly>
103103

@@ -196,7 +196,7 @@ Here's how this example works:
196196
3. After 60 seconds has passed, the next request will still return the cached (now stale) page
197197
4. The cache is invalidated and a new version of the page begins generating in the background
198198
5. Once generated successfully, the next request will return the updated page and cache it for subsequent requests
199-
6. If `/blog/26` is requested, and it exists, the page will be generated on-demand. This behavior can be changed by using a different [fallback](https://nextjs.org/docs/pages/api-reference/functions/get-static-paths#fallback-false) value. However, if the post does not exist, then 404 is returned.
199+
6. If `/blog/26` is requested, and it exists, the page will be generated on-demand. This behavior can be changed by using a different [fallback](/docs/pages/api-reference/functions/get-static-paths#fallback-false) value. However, if the post does not exist, then 404 is returned.
200200

201201
</PagesOnly>
202202

docs/01-app/02-guides/package-bundling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const nextConfig = {
7070
module.exports = nextConfig
7171
```
7272

73-
Next.js also optimizes some libraries automatically, thus they do not need to be included in the optimizePackageImports list. See the [full list](https://nextjs.org/docs/app/api-reference/config/next-config-js/optimizePackageImports).
73+
Next.js also optimizes some libraries automatically, thus they do not need to be included in the optimizePackageImports list. See the [full list](/docs/app/api-reference/config/next-config-js/optimizePackageImports).
7474

7575
<PagesOnly>
7676

docs/01-app/02-guides/videos.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To embed videos from external platforms, you can use Next.js to fetch the video
9696

9797
**1. Create a Server Component for video embedding**
9898

99-
The first step is to create a [Server Component](https://nextjs.org/docs/app/getting-started/server-and-client-components) that generates the appropriate iframe for embedding the video. This component will fetch the source URL for the video and render the iframe.
99+
The first step is to create a [Server Component](/docs/app/getting-started/server-and-client-components) that generates the appropriate iframe for embedding the video. This component will fetch the source URL for the video and render the iframe.
100100

101101
```jsx filename="app/ui/video-component.jsx"
102102
export default async function VideoComponent() {
@@ -108,7 +108,7 @@ export default async function VideoComponent() {
108108

109109
**2. Stream the video component using React Suspense**
110110

111-
After creating the Server Component to embed the video, the next step is to [stream](https://nextjs.org/docs/app/api-reference/file-conventions/loading) the component using [React Suspense](https://react.dev/reference/react/Suspense).
111+
After creating the Server Component to embed the video, the next step is to [stream](/docs/app/api-reference/file-conventions/loading) the component using [React Suspense](https://react.dev/reference/react/Suspense).
112112

113113
```jsx filename="app/page.jsx"
114114
import { Suspense } from 'react'

docs/01-app/03-api-reference/03-file-conventions/01-metadata/manifest.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ export default function manifest() {
6969

7070
### Manifest Object
7171

72-
The manifest object contains an extensive list of options that may be updated due to new web standards. For information on all the current options, refer to the `MetadataRoute.Manifest` type in your code editor if using [TypeScript](https://nextjs.org/docs/app/api-reference/config/typescript#ide-plugin) or see the [MDN](https://developer.mozilla.org/docs/Web/Manifest) docs.
72+
The manifest object contains an extensive list of options that may be updated due to new web standards. For information on all the current options, refer to the `MetadataRoute.Manifest` type in your code editor if using [TypeScript](/docs/app/api-reference/config/typescript#ide-plugin) or see the [MDN](https://developer.mozilla.org/docs/Web/Manifest) docs.

docs/01-app/03-api-reference/03-file-conventions/layout.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export default function Layout({ children }) {
234234

235235
Layouts do not re-render on navigation, so they do not access pathname which would otherwise become stale.
236236

237-
To access the current pathname, you can read it inside a Client Component using the [`usePathname`](https://nextjs.org/docs/app/api-reference/functions/use-pathname) hook. Since Client Components re-render during navigation, they have access to the latest pathname.
237+
To access the current pathname, you can read it inside a Client Component using the [`usePathname`](/docs/app/api-reference/functions/use-pathname) hook. Since Client Components re-render during navigation, they have access to the latest pathname.
238238

239239
```tsx filename="app/ui/breadcrumbs.tsx" switcher
240240
'use client'
@@ -312,7 +312,7 @@ export default function Layout({ children }) {
312312

313313
Layouts cannot pass data to their `children`. However, you can fetch the same data in a route more than once, and use React [`cache`](https://react.dev/reference/react/cache) to dedupe the requests without affecting performance.
314314

315-
Alternatively, when using [`fetch`](https://nextjs.org/docs/app/api-reference/functions/fetch)in Next.js, requests are automatically deduped.
315+
Alternatively, when using [`fetch`](/docs/app/api-reference/functions/fetch)in Next.js, requests are automatically deduped.
316316

317317
```tsx filename="app/lib/data.ts" switcher
318318
export async function getUser(id: string) {

docs/01-app/03-api-reference/04-functions/after.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: API Reference for the after function.
55

66
`after` allows you to schedule work to be executed after a response (or prerender) is finished. This is useful for tasks and other side effects that should not block the response, such as logging and analytics.
77

8-
It can be used in [Server Components](/docs/app/getting-started/server-and-client-components) (including [`generateMetadata`](https://nextjs.org/docs/app/api-reference/functions/generate-metadata)), [Server Actions](/docs/app/getting-started/updating-data), [Route Handlers](/docs/app/api-reference/file-conventions/route), and [Middleware](/docs/app/api-reference/file-conventions/middleware).
8+
It can be used in [Server Components](/docs/app/getting-started/server-and-client-components) (including [`generateMetadata`](/docs/app/api-reference/functions/generate-metadata)), [Server Actions](/docs/app/getting-started/updating-data), [Route Handlers](/docs/app/api-reference/file-conventions/route), and [Middleware](/docs/app/api-reference/file-conventions/middleware).
99

1010
The function accepts a callback that will be executed after the response (or prerender) is finished:
1111

docs/01-app/03-api-reference/04-functions/fetch.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Set the cache lifetime of a resource (in seconds). [Data Cache](/docs/app/guides
7979
fetch(`https://...`, { next: { tags: ['collection'] } })
8080
```
8181

82-
Set the cache tags of a resource. Data can then be revalidated on-demand using [`revalidateTag`](https://nextjs.org/docs/app/api-reference/functions/revalidateTag). The max length for a custom tag is 256 characters and the max tag items is 128.
82+
Set the cache tags of a resource. Data can then be revalidated on-demand using [`revalidateTag`](/docs/app/api-reference/functions/revalidateTag). The max length for a custom tag is 256 characters and the max tag items is 128.
8383

8484
## Troubleshooting
8585

docs/01-app/03-api-reference/05-config/02-typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function Nav() {
269269
270270
### Type IntelliSense for Environment Variables
271271

272-
During development, Next.js generates a `.d.ts` file in `.next/types` that contains information about the loaded environment variables for your editor's IntelliSense. If the same environment variable key is defined in multiple files, it is deduplicated according to the [Environment Variable Load Order](https://nextjs.org/docs/app/building-your-application/configuring/environment-variables#environment-variable-load-order).
272+
During development, Next.js generates a `.d.ts` file in `.next/types` that contains information about the loaded environment variables for your editor's IntelliSense. If the same environment variable key is defined in multiple files, it is deduplicated according to the [Environment Variable Load Order](/docs/app/guides/environment-variables#environment-variable-load-order).
273273

274274
To opt-into this feature, `experimental.typedEnv` needs to be enabled and the project needs to be using TypeScript.
275275

0 commit comments

Comments
 (0)