Patch for wizard URL path to take account of Discourse with subdirectory base URL.
Dieser Commit ist enthalten in:
Ursprung
6f13f0e4bf
Commit
9064b2fcbb
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
|
@ -36,6 +36,10 @@ export default Controller.extend({
|
||||||
|
|
||||||
@discourseComputed("wizard.id")
|
@discourseComputed("wizard.id")
|
||||||
wizardUrl(wizardId) {
|
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);
|
return window.location.origin + "/w/" + dasherize(wizardId);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren