{"action":"closed","issue":{"url":"https://api.github.com/repos/meteor-useraccounts/core/issues/386","labels_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/386/comments","events_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/386/events","html_url":"https://github.com/meteor-useraccounts/core/issues/386","id":76217136,"number":386,"title":"Prevent redirect to previous page - Modal signup / Signin","user":{"login":"niranjans","id":2230409,"avatar_url":"https://avatars.githubusercontent.com/u/2230409?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjans","html_url":"https://github.com/niranjans","followers_url":"https://api.github.com/users/niranjans/followers","following_url":"https://api.github.com/users/niranjans/following{/other_user}","gists_url":"https://api.github.com/users/niranjans/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjans/subscriptions","organizations_url":"https://api.github.com/users/niranjans/orgs","repos_url":"https://api.github.com/users/niranjans/repos","events_url":"https://api.github.com/users/niranjans/events{/privacy}","received_events_url":"https://api.github.com/users/niranjans/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-14T03:41:53Z","updated_at":"2015-05-14T09:27:42Z","closed_at":"2015-05-14T09:27:42Z","body":"Hi, \r\n\r\nI am using a modal signUp / signIn workflow and so when a user signs up, all that needs to happen is close the signUp modal on that page and not redirect. Currently, after the signup, the user is redirected to one page back. \r\nThis is my `onSubmitHook`:\r\n```\r\nvar submitFunc = function(error, state){\r\n  if (!error) {\r\n    if (state === \"signIn\") {\r\n      $('#modalSignIn').modal('hide');\r\n    }\r\n    if (state === \"signUp\") {\r\n      $('#modalSignUp').modal('hide');\r\n    }\r\n    // Router.go(Router.current().url); -- This does not work either\r\n  }\r\n};\r\n```"}}