{"action":"created","issue":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/546","labels_url":"https://api.github.com/repos/lhorie/mithril.js/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/lhorie/mithril.js/issues/546/comments","events_url":"https://api.github.com/repos/lhorie/mithril.js/issues/546/events","html_url":"https://github.com/lhorie/mithril.js/issues/546","id":67740068,"number":546,"title":"There's no way to use the shouldReplaceHistory flag with {config: m.route}","user":{"login":"farzher","id":1005136,"avatar_url":"https://avatars.githubusercontent.com/u/1005136?v=3","gravatar_id":"","url":"https://api.github.com/users/farzher","html_url":"https://github.com/farzher","followers_url":"https://api.github.com/users/farzher/followers","following_url":"https://api.github.com/users/farzher/following{/other_user}","gists_url":"https://api.github.com/users/farzher/gists{/gist_id}","starred_url":"https://api.github.com/users/farzher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farzher/subscriptions","organizations_url":"https://api.github.com/users/farzher/orgs","repos_url":"https://api.github.com/users/farzher/repos","events_url":"https://api.github.com/users/farzher/events{/privacy}","received_events_url":"https://api.github.com/users/farzher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-11T05:58:51Z","updated_at":"2015-04-13T18:10:39Z","closed_at":null,"body":"```js\r\nm.route('/whatever', true)\r\n```\r\n\r\nThe `true` flag here tells Mithril to replace the history, instead of push it\r\nBut this option doesn't exist when using config to route\r\n\r\n```js\r\n{config: m.route} // How do I replace?\r\n```\r\n\r\nMaybe someone has a clever idea of how to expose this option to the config version? I don't."},"comment":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/comments/92448544","html_url":"https://github.com/lhorie/mithril.js/issues/546#issuecomment-92448544","issue_url":"https://api.github.com/repos/lhorie/mithril.js/issues/546","id":92448544,"user":{"login":"lhorie","id":1637573,"avatar_url":"https://avatars.githubusercontent.com/u/1637573?v=3","gravatar_id":"","url":"https://api.github.com/users/lhorie","html_url":"https://github.com/lhorie","followers_url":"https://api.github.com/users/lhorie/followers","following_url":"https://api.github.com/users/lhorie/following{/other_user}","gists_url":"https://api.github.com/users/lhorie/gists{/gist_id}","starred_url":"https://api.github.com/users/lhorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhorie/subscriptions","organizations_url":"https://api.github.com/users/lhorie/orgs","repos_url":"https://api.github.com/users/lhorie/repos","events_url":"https://api.github.com/users/lhorie/events{/privacy}","received_events_url":"https://api.github.com/users/lhorie/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T18:10:39Z","updated_at":"2015-04-13T18:10:39Z","body":"I'm not against adding it, and like parseQuerystring/buildQuerystring, it'd be beneficial for such a flag to be in core just because of the sheer number of annoying edge cases that you'll have to deal w/ if it isn't (the middle click stuff for example).\r\n\r\nI'm just not really sure what's the best way to expose that flag in a config setting. A global, as you suggested, is a reasonable option, but ideally I'd also like to allow it on a per-config basis as well."}}