Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional path elements in routes #185

musketyr opened this issue Dec 17, 2012 · 1 comment

optional path elements in routes #185

musketyr opened this issue Dec 17, 2012 · 1 comment


Copy link

@musketyr musketyr commented Dec 17, 2012

if you have a lot of optional path elements in you url, the routes file can become pretty messy and hard to maintain

for example in case of having url mapping

    => handler.groovy?category=@category&subcategory=@subcategory&country=@country&state=@state&city=@city&page=@page

where country, state, city, time and page are optional you need following url mappings


would be nice if I could it define only once e.g. using following notation


it also implies that those path variables will be translated to query string like page=@page.

Copy link
Contributor Author

@musketyr musketyr commented Dec 17, 2012

fixed in a641ca0

@musketyr musketyr closed this Dec 17, 2012
musketyr added a commit that referenced this issue Dec 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.