Does this module enable filter and sort by path.alias?

Created on 17 February 2022, over 2 years ago
Updated 26 October 2023, about 1 year ago

Problem/Motivation

This doesnt work in core drupal:

/jsonapi/node/article?fields[node--article]=body,title,path&filter[path][condition][path]=path.alias&filter[path][condition][operator]=CONTAINS&filter[path][condition][value]={alias_value}

With this module can I now sort and filter with path.alias? i.e. will the above work?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

2.0

Component

Documentation

Created by

🇬🇧United Kingdom Syntapse

Live updates comments and jobs are added and updated live.
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.

  • 🇫🇷France sashainparis Provins

    Hey,

    I'm just getting this module to be maintained again.

    From I've read in the code, it should understood as Redirect module JsonAPI oriented - based on the current Alias. Which is pretty cool but should not be considered as a JsonAPI resource itself. Though: Filtering and sorting don't make sense.

    As you said it: JsonAPI Core do not allow to filter on the path.alias because it's a dynamic field. Some module proposed to create a real field that actually save he value in the DB - meaning it can be filtered. This approached is not so good from my point of view as updating batch of contents could be a huge issue if you intend to force this saving (writing during the batch vs missing some updates vs ...).

    Alexandre

Production build 0.71.5 2024