When sending POST request status 200 and all response seems okay, only path got null.
"path": {
"alias": null,
"pid": null,
"langcode": "en"
}
which is expecting a path value from pathauto. I want to use the path value as url.

Is there anyway to solve this issue?

Comments

yalasta created an issue. See original summary.

wim leers’s picture

Project: JSON:API » Drupal core
Version: 8.x-2.4 » 8.8.x-dev
Component: Miscellaneous » jsonapi.module
Status: Active » Postponed (maintainer needs more info)
Issue tags: +API-First Initiative, +path alias, +pathauto

Very interesting!

In Drupal 8.8.x, path aliases are now entities. That means path is now an entity reference field rather than a very special snowflake field. This makes me suspect that this problem might be solved by updating to Drupal 8.8.x and updating pathauto. Could you update and report back? 🙏

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

bbrala’s picture

bbrala’s picture

Status: Postponed (maintainer needs more info) » Fixed

Since there has been no response, i'm going to assume this issue fixed. Should this not be true, let us know by reopening this issue or creating a new one, thanks!

bbrala’s picture

Category: Bug report » Support request

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.