{"action":"created","issue":{"url":"https://api.github.com/repos/websanova/vue-auth/issues/196","repository_url":"https://api.github.com/repos/websanova/vue-auth","labels_url":"https://api.github.com/repos/websanova/vue-auth/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/websanova/vue-auth/issues/196/comments","events_url":"https://api.github.com/repos/websanova/vue-auth/issues/196/events","html_url":"https://github.com/websanova/vue-auth/issues/196","id":243219076,"number":196,"title":"Relative route path issue","user":{"login":"jgerbes","id":13686180,"avatar_url":"https://avatars3.githubusercontent.com/u/13686180?v=4","gravatar_id":"","url":"https://api.github.com/users/jgerbes","html_url":"https://github.com/jgerbes","followers_url":"https://api.github.com/users/jgerbes/followers","following_url":"https://api.github.com/users/jgerbes/following{/other_user}","gists_url":"https://api.github.com/users/jgerbes/gists{/gist_id}","starred_url":"https://api.github.com/users/jgerbes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgerbes/subscriptions","organizations_url":"https://api.github.com/users/jgerbes/orgs","repos_url":"https://api.github.com/users/jgerbes/repos","events_url":"https://api.github.com/users/jgerbes/events{/privacy}","received_events_url":"https://api.github.com/users/jgerbes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-07-16T05:36:11Z","updated_at":"2017-07-31T00:25:34Z","closed_at":null,"body":"I'm having an issue where the auth routes are appending the current route, rather than the base url.\r\n\r\n**Example**\r\nBase url: www.example.com\r\nCorrect login route: www.example.com/auth/login\r\nCurrent path: www.example.com/page/subpage\r\nCurrent login route: www.example.com/page/subpage/auth/login\r\n\r\n**Possible solution**\r\nIt seems that the solution is to add \"/\" to the start of each of the auth routes:\r\n\r\n```\r\nregisterData: { url: '/auth/register' },\r\nloginData: { url: '/auth/login' },\r\nlogoutData: { url: '/auth/logout' },\r\noauth1Data: { url: '/auth/login' },\r\nfetchData: { url: '/auth/user' },\r\nrefreshData: { url: '/auth/refresh' },\r\nloginOtherData: { url: '/auth/login-other' },\r\nlogoutOtherData: { url: '/auth/logout-other' },\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/websanova/vue-auth/issues/comments/318940835","html_url":"https://github.com/websanova/vue-auth/issues/196#issuecomment-318940835","issue_url":"https://api.github.com/repos/websanova/vue-auth/issues/196","id":318940835,"user":{"login":"websanova","id":1645771,"avatar_url":"https://avatars2.githubusercontent.com/u/1645771?v=4","gravatar_id":"","url":"https://api.github.com/users/websanova","html_url":"https://github.com/websanova","followers_url":"https://api.github.com/users/websanova/followers","following_url":"https://api.github.com/users/websanova/following{/other_user}","gists_url":"https://api.github.com/users/websanova/gists{/gist_id}","starred_url":"https://api.github.com/users/websanova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websanova/subscriptions","organizations_url":"https://api.github.com/users/websanova/orgs","repos_url":"https://api.github.com/users/websanova/repos","events_url":"https://api.github.com/users/websanova/events{/privacy}","received_events_url":"https://api.github.com/users/websanova/received_events","type":"User","site_admin":false},"created_at":"2017-07-31T00:25:33Z","updated_at":"2017-07-31T00:25:33Z","body":"Well the routes and url are really dependant on the library you're using,\nVue resource or axios for example ;)\n\nOn Jul 31, 2017 05:55, \"Erik Campobadal\" <notifications@github.com> wrote:\n\n> I think it's there already, at least it's in the demo provided.\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/websanova/vue-auth/issues/196#issuecomment-318932534>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABkcyw63PqxoSeKrN7gRd8NRrOR6h0MGks5sTPvsgaJpZM4OZNN_>\n> .\n>\n"}}
{"actor":{"display_login":"websanova"}}