diff --git a/app/routes/github-authorize.js b/app/routes/github-authorize.js index fca003a398a..501281b1404 100644 --- a/app/routes/github-authorize.js +++ b/app/routes/github-authorize.js @@ -18,7 +18,7 @@ import { serializeQueryParams } from 'ember-fetch/utils/serialize-query-params'; export default Route.extend({ async beforeModel(transition) { try { - let queryParams = serializeQueryParams(transition.queryParams); + let queryParams = serializeQueryParams(transition.to.queryParams); let resp = await fetch(`/api/private/session/authorize?${queryParams}`); let json = await resp.json(); let item = JSON.stringify({ ok: resp.ok, data: json });