Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
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