Will not work if JSON:API route prefix has been modified

Created on 26 March 2025, 9 days ago

Problem/Motivation

If the path prefix for JSON:API has been customized, the module will break. See https://git.drupalcode.org/project/jsonapi_query_builder/-/blob/1.0.x/sr...

  public function explorer() {
    $base_url = Url::fromRoute('<front>', [], ['absolute' => TRUE])->toString();
    $jsonapi_url = $base_url . 'jsonapi';

Steps to reproduce

Proposed resolution

Generate the URL from the jsonapi.resource_list route with setAbsolute.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

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