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

GET Parameters on generated URL #18

Open
luiz opened this issue May 19, 2011 · 1 comment
Open

GET Parameters on generated URL #18

luiz opened this issue May 19, 2011 · 1 comment
Labels

Comments

@luiz
Copy link
Owner

luiz commented May 19, 2011

Currently, when an URL to a method is generated and this method receives some arguments, only those that change the URL's base are inserted in the generated URL. For example, suppose you have the following controller method:

public class PostsController {
    @Path("/users/{user.id}/posts")
    @Get
    public void listPostsFrom(User user, String tag) {...}
}

And you want to generate the URL /users/1/posts?tag=testing. The current behavior is, when generating an URL using

url(); to(PostsController.class).listPostsFrom(userWithId1, "testing");

is to generate the URL /users/1/posts, without the parameter tag because it's not part of the base URL. But it should generate the desired URL, described above.

@luiz
Copy link
Owner Author

luiz commented Aug 2, 2011

Partially implemented by Erich Egert and me. View commit 6a22528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant