Add API Version navigation to detail pages

Created on 9 September 2022, almost 2 years ago
Updated 14 May 2024, about 2 months ago

Problem/Motivation

Switching versions is easy when on a listing page. However, when you're on an individual class, you can't directly nav between versions. It would be great to add version navigation to detail pages.

Steps to reproduce

Page with no top menu:
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...

Page with a top menu: https://api.drupal.org/api/drupal/elements/8.2.x

Proposed resolution

Add the top primary tabs nav that exists on listing pages to the detail page to allow quick version switching.

✨ Feature request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Greg Boggs Portland Oregon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

    Note that the second link is a special listing page, always available for all versions.

    However, the first link is specific to a file and function (or constant, or namespace...), and it might or might not exists on other branches. These pages have something similar, a section called "Same name and namespace in other branches", that you can open and navigate.

    This has been link this from the beginning and is by design, because we cannot guarantee that there will be the same file, same function, in the same location, for another branch, so we can only do a best guess, which is what we currently do.

    I think this works as designed.

Production build 0.69.0 2024