Merge pull request #211 from sindbach/fix_preview_url_paths
Patch for wizard URL path to take account of subdirectory base URL.
Dieser Commit ist enthalten in:
Commit
971b41e15a
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
|
@ -36,7 +36,8 @@ export default Controller.extend({
|
|||
|
||||
@discourseComputed("wizard.id")
|
||||
wizardUrl(wizardId) {
|
||||
return window.location.origin + "/w/" + dasherize(wizardId);
|
||||
let baseUrl = window.location.href.split("/admin");
|
||||
return baseUrl[0] + "/w/" + dasherize(wizardId);
|
||||
},
|
||||
|
||||
@discourseComputed("wizard.after_time_scheduled")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
# name: discourse-custom-wizard
|
||||
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
|
||||
# version: 2.1.1
|
||||
# version: 2.1.2
|
||||
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever
|
||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||
# contact_emails: development@pavilion.tech
|
||||
|
|
Laden …
In neuem Issue referenzieren