FIX: Access transcript params correctly

Previously we were using an undocumented Ember API
This commit is contained in:
David Taylor 2019-07-27 15:04:42 +01:00
parent 4336374d27
commit a48870ef38
1 changed files with 2 additions and 2 deletions

View File

@ -2,9 +2,9 @@ import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
export default Discourse.Route.extend({
beforeModel(transition) {
model(params) {
if (this.currentUser) {
const secret = transition.params.transcript.secret;
const secret = params.secret;
this.replaceWith("discovery.latest").then(e => {
if (this.controllerFor("navigation/default").get("canCreateTopic")) {