diff --git a/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 index e6b0ad04..74c239fe 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 @@ -36,6 +36,10 @@ export default Controller.extend({ @discourseComputed("wizard.id") wizardUrl(wizardId) { + let baseUrl = (window.location.href).split('/admin'); + if (baseUrl.length > 1) { + return baseUrl[0] + "/w/" + dasherize(wizardId); + } return window.location.origin + "/w/" + dasherize(wizardId); },