← Lesson library
Preserve relative links when moving documents
When moving a document, update its relative links to preserve their targets. Verify that every relative destination resolves from the document’s new location.
Compare the published fixtures
fixtures/bad/README.md
# Project
Start with the [setup guide](handbook/guides/setup.md).
fixtures/bad/handbook/config.md
# Configuration
Set `PORT` before starting the server.
fixtures/bad/handbook/guides/setup.md
# Setup
Install the tool, then read [configuration](./config.md#port).
fixtures/good/README.md
# Project
Start with the [setup guide](handbook/guides/setup.md).
fixtures/good/handbook/config.md
# Configuration
Set `PORT` before starting the server.
fixtures/good/handbook/guides/setup.md
# Setup
Install the tool, then read [configuration](../config.md#port).