{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1034","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1034/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1034/events","html_url":"https://github.com/rackt/react-router/issues/1034","id":65783683,"number":1034,"title":"<Redirect> to route with additional (not replacement) params","user":{"login":"benjie","id":129910,"avatar_url":"https://avatars.githubusercontent.com/u/129910?v=3","gravatar_id":"","url":"https://api.github.com/users/benjie","html_url":"https://github.com/benjie","followers_url":"https://api.github.com/users/benjie/followers","following_url":"https://api.github.com/users/benjie/following{/other_user}","gists_url":"https://api.github.com/users/benjie/gists{/gist_id}","starred_url":"https://api.github.com/users/benjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjie/subscriptions","organizations_url":"https://api.github.com/users/benjie/orgs","repos_url":"https://api.github.com/users/benjie/repos","events_url":"https://api.github.com/users/benjie/events{/privacy}","received_events_url":"https://api.github.com/users/benjie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rackt/react-router/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-01T21:34:19Z","updated_at":"2015-06-19T17:19:38Z","closed_at":"2015-06-19T14:09:07Z","body":"Imagine we have the following tree and we want to make it so if you visit `/foo/:id` you're redirected to `/foo/:id/awesome`:\r\n\r\n```\r\n<Route name=\"foo\" path=\"/foo/:id\" handler=...>\r\n  <Route name=\"foo_bar\" path=\":type\" handler=...>\r\n    <DefaultRoute handler=... />\r\n    ...\r\n  </Route>\r\n</Route>\r\n```\r\n\r\nA guess might have you do:\r\n\r\n```\r\n<Redirect from=\"/foo/:id\" to=\"foo_bar\" params={{type: \"awesome\"}} />\r\n```\r\n\r\nHowever, due to [how Redirect is implemented](https://github.com/rackt/react-router/blob/06c15c5b616140589ed56ccc00be84bcbd3de543/build/npm/lib/Route.js#L197) the params aren't added to the existing params, but instead replaced, meaning the `:id` param is dropped. \r\n\r\nIs there a way to both pass through the dynamic `:id` param and add an additional static `:type` param? If not, would you accept a pull request changing `options.params || params` to something like `Object.assign({}, params, options.params)`? \r\n\r\n---\r\n\r\nIn case anyone else is struggling with this, a hack that seems to work (react-router 0.12.4) is defining an unreachable route **after** the route you want to point to with the path you want, like so:\r\n\r\n```\r\n<Redirect from=\"/foo/:id\" to=\"foo_bar_HACK_awesome\" />\r\n<Route name=\"foo\" path=\"/foo/:id\" handler=...>\r\n  <Route name=\"foo_bar\" path=\":type\" handler=...>\r\n    <DefaultRoute handler=... />\r\n    ...\r\n  </Route>\r\n  <Route name=\"foo_bar_HACK_awesome\" path=\"awesome\" />\r\n</Route>\r\n```"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/113580301","html_url":"https://github.com/rackt/react-router/issues/1034#issuecomment-113580301","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1034","id":113580301,"user":{"login":"benjie","id":129910,"avatar_url":"https://avatars.githubusercontent.com/u/129910?v=3","gravatar_id":"","url":"https://api.github.com/users/benjie","html_url":"https://github.com/benjie","followers_url":"https://api.github.com/users/benjie/followers","following_url":"https://api.github.com/users/benjie/following{/other_user}","gists_url":"https://api.github.com/users/benjie/gists{/gist_id}","starred_url":"https://api.github.com/users/benjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjie/subscriptions","organizations_url":"https://api.github.com/users/benjie/orgs","repos_url":"https://api.github.com/users/benjie/repos","events_url":"https://api.github.com/users/benjie/events{/privacy}","received_events_url":"https://api.github.com/users/benjie/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T17:19:38Z","updated_at":"2015-06-19T17:19:38Z","body":"@mjackson I'd love to be able to supplement the params, e.g. in my case I want to redirect to a named route (rather than an absolute path) and merge `{type: awesome}` with the params."}}