Support wildcard matching within path segments (partial segment wildcards) #2373
timherby
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Very valid feature request. We will look into this one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Use Case
We're migrating documentation from Intercom/Zendesk to Mintlify. The old URLs follow this pattern:
For example, the same article may have been accessed via multiple URL variations:
/en/articles/9140627-how-do-i-create-and-manage-my-collections/en/articles/9140627-what-is-a-collectionBoth should redirect to the same destination. We have ~300 redirects, many with 2-5 URL variations per article ID.
Current Limitation
The
:slug*wildcard only matches at path segment boundaries. These patterns don't work:{ "source": "/en/articles/9140627-*", "destination": "/new-path" } { "source": "/en/articles/9140627-:slug*", "destination": "/new-path" }Proposed Solution
Support wildcards within path segments, for example:
{ "source": "/en/articles/9140627-*", "destination": "/collections/overview" }This would match any URL starting with
/en/articles/9140627-regardless of the slug suffix.Benefit
This would let us consolidate ~300 individual redirects into ~100 wildcard patterns, making redirect configuration more maintainable and reducing the risk of missing URL variations we haven't discovered yet.
Beta Was this translation helpful? Give feedback.
All reactions