{"action":"created","issue":{"url":"https://api.github.com/repos/cfwheels/cfwheels/issues/608","repository_url":"https://api.github.com/repos/cfwheels/cfwheels","labels_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/608/comments","events_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/608/events","html_url":"https://github.com/cfwheels/cfwheels/issues/608","id":143195020,"number":608,"title":"Improve Params passthrough for urlFor()","user":{"login":"neokoenig","id":381268,"avatar_url":"https://avatars.githubusercontent.com/u/381268?v=3","gravatar_id":"","url":"https://api.github.com/users/neokoenig","html_url":"https://github.com/neokoenig","followers_url":"https://api.github.com/users/neokoenig/followers","following_url":"https://api.github.com/users/neokoenig/following{/other_user}","gists_url":"https://api.github.com/users/neokoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/neokoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neokoenig/subscriptions","organizations_url":"https://api.github.com/users/neokoenig/orgs","repos_url":"https://api.github.com/users/neokoenig/repos","events_url":"https://api.github.com/users/neokoenig/events{/privacy}","received_events_url":"https://api.github.com/users/neokoenig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cfwheels/cfwheels/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-24T09:20:56Z","updated_at":"2016-03-24T14:01:12Z","closed_at":null,"body":"Just noting this enhancement request which has come up:\r\n\r\n\"When I want to paginate a recordset of search results where the search params are variable, I find generating the params argument a bit painful.. I am constantly needing to remove the route,controller,action,page params, then create a querystring of the remaining values.\";\r\n\r\nCould be better to do : \r\n`params=true` and / or `params=\"name1,name2\"`\r\n\r\ne.g, assuming the `params` struct has `myVar1,myVar2,myVar3` already defined in the request:\r\n\r\n`linkTo(route=\"search\", params=true, text=\"search\")`\r\n\r\nmight result in:\r\n\r\n`<a href=\"/search?myVar1=1&myVar2=2&myVar3=foo\">search</a>`\r\n\r\nAlternatively in the same page:\r\n\r\n`linkTo(route=\"search\", params=\"myVar2\", text=\"search\")`\r\n\r\nmight result in:\r\n\r\n`<a href=\"/search?myVar2=2\">search</a>`\r\n\r\nIf we do this in `urlFor()` then it should hopefully be able to propagate down to pagination, meaning that you can much more easily paginate responses with say, custom search queries and filtering.\r\n"},"comment":{"url":"https://api.github.com/repos/cfwheels/cfwheels/issues/comments/200850479","html_url":"https://github.com/cfwheels/cfwheels/issues/608#issuecomment-200850479","issue_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/608","id":200850479,"user":{"login":"chapmandu","id":1092563,"avatar_url":"https://avatars.githubusercontent.com/u/1092563?v=3","gravatar_id":"","url":"https://api.github.com/users/chapmandu","html_url":"https://github.com/chapmandu","followers_url":"https://api.github.com/users/chapmandu/followers","following_url":"https://api.github.com/users/chapmandu/following{/other_user}","gists_url":"https://api.github.com/users/chapmandu/gists{/gist_id}","starred_url":"https://api.github.com/users/chapmandu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapmandu/subscriptions","organizations_url":"https://api.github.com/users/chapmandu/orgs","repos_url":"https://api.github.com/users/chapmandu/repos","events_url":"https://api.github.com/users/chapmandu/events{/privacy}","received_events_url":"https://api.github.com/users/chapmandu/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T14:01:12Z","updated_at":"2016-03-24T14:01:12Z","body":"@chrisdpeters You know what.. After thinking about it, I cannot give you an example. I've just \"always done it that way\".. You've changed my thinking on search forms.. "}}