Skip to content
Discussion options

You must be logged in to vote

Hi Mallik!
Thanks so much for showing interest in the Ocelot project!

{panel-unique-id}

Yes, the hyphen character (-) is not supported in Placeholders as it is a special character in .NET regular expressions to define character ranges [a-z]
You cannot use placeholders like unique*id or unique/id, but the underscore character (_) works fine, such as unique_id.

Traditionally, placeholder names have been limited to alphanumeric characters like id1 or PostId. With the introduction of the Embedded Placeholders feature in version 23.4, placeholders can now appear at any position within a URL path segment (between slashes). However, the character set for naming placeholders remains restricted …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Routing Ocelot feature: Routing
2 participants
Converted from issue

This discussion was converted from issue #2315 on September 24, 2025 16:32.