hook redirect URLs no longer work

Created on 29 January 2023, about 2 years ago

Problem/Motivation

Up until recently, you could use a URL for a function to get to hook documentation in an api.php file, like this:

> https://api.drupal.org/api/function/hook_theme/8.9.x

The api.d.o site redirected this to the full URL, e.g.:

> https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...

This was useful:

- You could create browser bookmarks with keyword shortcuts to look up hooks. For example, had 'http://api.drupal.org/api/function/hook_%s/8', which allowed me to type 'dh theme' to get to hook_theme documentation
- I relied on this URL pattern in Module Builder, to create links in the hooks form.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

User interface

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024