Skip to content

Conversation

@exacs
Copy link
Contributor

@exacs exacs commented Nov 19, 2025

This PR

  • Changes the way links are sorted in the getPath method.
  • Adds the field _metadata.url.base to allow developers filter-out links that are not belonging the current site

Copilot finished reviewing on behalf of exacs November 19, 2025 14:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the link sorting mechanism in the getPath method to use a path-based ordering instead of hierarchical URL sorting. It also adds the _metadata.url.base field to enable filtering of links belonging to the current site.

  • Changes sorting logic from hierarchical URL comparison to path-based key matching
  • Adds _metadata.path and _metadata.url.base fields to GraphQL queries
  • Introduces error handling for missing path metadata

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@exacs exacs merged commit 6bcebbf into main Nov 20, 2025
4 checks passed
@exacs exacs deleted the bugfix/CMS-47140-paths-order branch November 20, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants