Pager override demo

04 · Override prev

Override only the Previous button — useful when the user arrived via a custom Next.

1 min

This page overrides only Previous, sending readers back to page 2 (where the override that brought them here lives) rather than the natural DFS prior page.

What to look for

At the bottom of this page:

The symmetry is intentional: page 2 sends readers forward to here; page 4 sends them back to page 2. Together they form a self-contained “skip” that round-trips correctly.

The markdown

markdown
{{< pager prev="/workshops/pager-demo/02-override-next/" >}}

No prevLabel is given, so the label falls back to the destination page’s linkTitle.

When to use this pattern

Common scenarios:

Last Modified ·