A platform for community discussion. Free, open, simple.
FIX: /signup and /password-reset direct links were broken
Arpit Jalan01e218054859
diff --git a/app/views/static/password_reset.html.erb b/app/views/static/password_reset.html.erbnew file mode 100644index 00000000000..0100cc870b2--- /dev/null+++ b/app/views/static/password_reset.html.erb@@ -0,0 +1 @@+<!-- this file is required to show the password reset modal: /password-reset -->diff --git a/app/views/static/signup.html.erb b/app/views/static/signup.html.erbnew file mode 100644index 00000000000..1c5ecea63c2--- /dev/null+++ b/app/views/static/signup.html.erb@@ -0,0 +1 @@+<!-- this file is required to show the signup modal: /signup -->diff --git a/spec/requests/static_controller_spec.rb b/spec/requests/static_controller_spec.rbindex 7db1cdbb21b..feec6a38e7b 100644--- a/spec/requests/static_controller_spec.rb+++ b/spec/requests/static_controller_spec.rb@@ -96,13 +96,23 @@ describe StaticController doendcontext "with a static file that's present" do- it "should return the right response" do+ it "should return the right response for /faq" doget "/faq"expect(response.status).to eq(200)expect(response.body).to include(I18n.t('js.faq'))expect(response.body).to include("<title>FAQ - Discourse</title>")end++ it "should return the right response for /signup" do+ get "/signup"+ expect(response.status).to eq(200)+ end++ it "should return the right response for /password-reset" do+ get "/password-reset"+ expect(response.status).to eq(200)+ endend[