Skip to content

Conversation

@theletterf
Copy link
Contributor

This is a concept PR that tries to add glob support to our redirect system using https://github.com/dazinator/DotNet.Glob.

With this change (which I couldn't test), we could use the following patterns:

Trailing Wildcard Redirects

Uses ** to match all content under a path prefix.

redirects:
  '/reference/apm/agents/android/**': '/reference/opentelemetry/edot-sdks/android/**'

Example: /reference/apm/agents/android/setup/reference/opentelemetry/edot-sdks/android/setup

Single Segment Wildcard Redirects

Uses * to match any characters within a single path segment.

redirects:
  '/guides/*/intro': '/tutorials/*/getting-started'

Example: /guides/elasticsearch/intro/tutorials/elasticsearch/getting-started

Single Character Wildcard Redirects

Uses ? to match a single character.

redirects:
  '/api/v1/user?.json': '/api/v2/users'

Example: /api/v1/user1.json/api/v2/users

@theletterf theletterf self-assigned this May 20, 2025
@theletterf theletterf requested a review from a team as a code owner May 20, 2025 09:47
@Mpdreamz Mpdreamz assigned cotti and theletterf and unassigned theletterf Jun 2, 2025
@bmorelli25 bmorelli25 closed this Aug 8, 2025
@bmorelli25 bmorelli25 deleted the add-glob-redirects branch August 8, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants