From bc5a504dfda49c0a63ef79094cf13e7e6b75f161 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 14 May 2018 12:11:11 +1000 Subject: [PATCH] Minor fixes --- config/locales/client.en.yml | 4 ++-- plugin.rb | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 1ed57f8e..b9fcfa2a 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -162,8 +162,8 @@ en: return_to_site: "Return to {{siteName}}" wizard_composer: - show_preview: "Preview Your Post" - hide_preview: "Hide Preview" + show_preview: "Preview Post" + hide_preview: "Edit Post" quote_post_title: "Quote whole post" bold_label: "B" bold_title: "Strong" diff --git a/plugin.rb b/plugin.rb index 8ab4bf7b..1637eab1 100644 --- a/plugin.rb +++ b/plugin.rb @@ -86,11 +86,13 @@ after_initialize do module InvitesControllerCustomWizard def path(url) if Wizard.user_requires_completion?(@user) - wizard_path = $redis.get('custom_wizard_redirect') + wizard_id = $redis.get('custom_wizard_redirect') + unless url === '/' CustomWizard::Wizard.set_redirect(@user, wizard_id, url) end - url = "/w/#{wizard_path}" + + url = "/w/#{wizard_id}" end super(url) end