'alternate' link metatags do not point the frontend

Created on 3 January 2024, 6 months ago
Updated 23 January 2024, 5 months ago

Problem/Motivation

'alternate' links in CE API output have a URL pointing to the backend, e.g.

(imagine example JSON here: contains "href": "https://lupus-decoupled.ddev.site/....", should be "href": "https://lupus-nuxt.ddev.site/....")

These 'alternate' links (to the original node as well as its existing translations) are only added to the output of a node, if the node has a translation.

Steps to reproduce

  • add translation to node
  • view API output for node

Proposed resolution

See MR, test-only and with proposed fix.

Remaining tasks

Review. Please note:

  • MR !74 is meant for review/merging -- but tests fail, just like they do on 1.x, until 🐛 Respect installations with base paths Needs review gets merged
  • therefore MR!76 is exactly the same commits, but with #3409409 merged in, to prove the fix
  • and MR!73 is the first test-only commit, but with #3409409 merged in, to prove the test failed before the fix.

#3409409

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands roderik Amsterdam,NL / Budapest,HU

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024