This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, Consider the following Controller contract: [WebContract("accounts")] This results in a URI like /accounts/confirm (for no confirmation code) and another /accounts/confirm/?ConfirmationCode=27sj28d. I'd like the latter to be /accounts/confirm/27sj28d. So when I add the "UrlStemSuffix" attribute to the confirmation code parameter, the url for when I don't have a confirmation code becomes "/Account/Confirm". Any suggestions would be appreciated. Thanks, Werner
|
|
|
Thanks for the feedback - currently what you are looking for is not directly achievable since we dont have a way of describing that situation but we can look at adding in a seperate attribute which will cater for this. I will post an update once we have added this in. As a workaround for now you could add the optional parameter version of the route manually to cater for this.
Jeremy |
|
|
An update on this - I have added in an OptionalUrlStemSuffix attribute to support this type of scenario. This is now available in the nightly builds so let us know if you have any feedback.
Thanks! Jeremy |
|