Extend documentation for drupal_url() + add example for taxomy_term

Created on 11 December 2023, 12 months ago
Updated 8 March 2024, 9 months ago

Problem/Motivation

Trying to use {{ drupal_url('taxonomy_term/' ~ term.id()) }} doesn't work and will result in a 404.

Instead Twig Tweaks drupal_url() function the core "path" function does the job correctly: {{ path('entity.taxonomy_term.canonical', {'taxonomy_term': term_id}) }}. But, yeah, this should work equal for all entity types using drupal_url().

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

Version

3.0

Component

Documentation

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024