Skip to content

Don't add "Previous version" when mapped_page is to a versionless book #1260

Open
@colleenmcginnis

Description

@colleenmcginnis

Describe the bug

For mapped_pages that link to versionless AsciiDoc books (paths set to undefined in legacy-url-mappings.yml), we should not add a "Previous versions" link because it just redirects back to the v3 page.

Example: https://www.elastic.co/docs/deploy-manage/users-roles

Image

Expected behavior

The "Previous version" should be grayed out.

Steps to reproduce

  1. Go to https://www.elastic.co/docs/deploy-manage/users-roles
  2. Open the version dropdown.
  3. Click "Previous version".
  4. You will be redirected to the same page you started on.

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions