Output the URL of the entity in one main attribute

Created on 29 April 2025, about 1 month ago

Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇷🇸Serbia petar_basic

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

Merge Requests

Comments & Activities

  • Issue created by @petar_basic
  • 🇸🇮Slovenia useernamee Ljubljana

    hrefLangcode is generally needed. If the the URL language detection is in place than hrefLangcode should be used as a prefix before path alias to make the path work.

  • 🇦🇹Austria fago Vienna
  • Merge request !120Resolve #3521766 "Output the url" → (Merged) created by fago
  • 🇦🇹Austria fago Vienna

    implemented this and added a kernel test for the formatter. I think this formatter test-case is a good blue-print test-caes for further formatters, should be rather easy to copy and adapt it as needed.

  • 🇦🇹Austria fago Vienna

    > hrefLangcode is sometimes needed. If the the URL language detection is in place than hrefLangcode should be used as a prefix before path alias to make the path work.

    actually, the output URL should just use the right language already. Then there is no need for the langcode anymore.

    I made a setting to allow URLs to be absolute optionally though, that might be needed in some cases.

  • 🇦🇹Austria fago Vienna

    Note: This also adds service-utils as a new dependency. I think that's fine, we are going to tag 3.1 anyway. lupus_ce_renderer requires it already.

  • 🇸🇮Slovenia useernamee Ljubljana

    moving to rtbc

  • 🇦🇹Austria fago Vienna

    > I wonder whether we should test for other language.negotiation methods? I think the url.prefixes is the most widely used.

    I do think that's not what we want to test here, generally they should be covered else. The test just makes sure that url-prefixes coming from it are correctley obeyed - if any.

  • Pipeline finished with Skipped
    7 days ago
    #510375
    • fago committed f1ab09a0 on 3.x
      Issue #3521766 by fago: Add URL output formatter for the path field
      
  • 🇦🇹Austria fago Vienna
Production build 0.71.5 2024