Problem/Motivation

Breadcrumb trails are currently literal arrays inside each resource — the article's trail names the blog page by its node id. It is the second clearest case, after the special pages, of one site's decisions living in a module meant for any site.

Proposed resolution

  • A breadcrumb service that takes a trail of page roles plus self from the convention and resolves each to a title and an alias in the response language.
  • A role that is unfilled is skipped, shortening the trail rather than producing a hole.
  • Hierarchical trails for terms, where the parent chain is the trail.
  • The same service used by every resource kind, so a trail looks the same wherever it appears.

Remaining tasks

Everything.

Issue fork myrest-3621329

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

  • sergeydruua committed 447db9fc on 1.0.x
    Issue #3621329: Build breadcrumbs from the conventions rather than from...
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)