Visual RFC.
ALL RFCs / RFC 8288
Read the RFC ↗
RFC 8288 / WEB LINKING

Resolve targets and honor anchor context

03

Relative targets and anchor values are resolved against the representation URL. The anchor changes the context of the statement, not the target’s base.

RFC 8288 · § 3.2EXAMPLE
3 / 3
Resolve targets and honor anchor contextThe associated representation URL is https://example.com/books/chapter3. Relative target chapter4 resolves to /books/chapter4. Relative anchor ../index independently changes context to /index, without rebasing the target. Body base URIs are ignored for this header. If the application cannot apply anchor it must ignore the whole link.Resolve target and context independentlyRepresentation: https://example.com/books/chapter3Link: <chapter4>; rel="next";anchor="../index"Anchored linkApplicationcannot apply anchorMUST NOT process without anchorIgnore the whole link, not just the parameterNo body base URI is applied to this Link field
03
Stop if the application cannot honor anchor.

This example application does not support an overridden context. It ignores the entire link; it does not silently apply next to /books/chapter3 instead.

Source for this drawing: RFC 8288 · Read RFC section 3.2 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Terms in this drawing
URI-reference
An absolute URI or a relative reference to be resolved against a base.
anchor
The Link parameter that changes the resource the statement is about.
Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

A relative target MUST be resolved using RFC 3986 §5. Any base URI in the message body is not applied to the Link field.

  • A relative target MUST be resolved using RFC 3986 §5. Any base URI in the message body is not applied to the Link field.
  • Default context is the associated representation’s URL. The optional anchor parameter overrides it, and a relative anchor MUST also be resolved using RFC 3986 §5.
  • An application may ignore links containing anchor. If it cannot apply anchor, it MUST NOT process the link while pretending anchor was absent; ignore the entire link.
  • The representation can have no available context, such as the RFC’s GET 404 example. Do not assume every response creates an identified context.
DETAILS

Assume GET https://example.com/books/chapter3 returns a representation without a Content-Location override. Target chapter4 resolves to https://example.com/books/chapter4. Anchor ../index independently resolves to https://example.com/index. It does not rebase chapter4 to /chapter4. An HTML base element would not change either resolution for this HTTP field.

Read the RFC section ↗

All chapters in RFC 8288

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗