Need a way to distinguish "public/final" URIs for entities from admin and redirected ones

Created on 4 November 2011, over 13 years ago
Updated 8 May 2025, 2 days ago

For modules that want to operate on publicly-visible entities, we need a reliable method to determine which entity types are not. See #1330546: Pathauto should work with all entity types β†’ and #1286122: Incompatibility with Commerce β†’ for a little more history. We have some problems with core and contrib entities:

  • The comment_uri callback creates links to 'comment/1' URLs which are handled by comment_permalink() which essentially redirects the user to the node page with that comment. I propose that the 'uri_callback' should be removed from comment_entity_info() as comments cannot be viewed individually.
  • Commerce entities implement URI callbacks. But for products these end up by admin pages by default and not actually public-visible URIs.
    All of our entities except payment transactions have fields and paths, but none of them will be directly displayed to end users or accessible to search bots.

    I would propose commerce removes the support for uri_callback unless these entities are actually publicly visible.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

entity system

Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024