FIX: /signup and /password-reset direct links were broken

FIX: /signup and /password-reset direct links were broken

diff --git a/app/views/static/password_reset.html.erb b/app/views/static/password_reset.html.erb
new file mode 100644
index 0000000..0100cc8
--- /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.erb
new file mode 100644
index 0000000..1c5ecea
--- /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.rb
index 7db1cdb..feec6a3 100644
--- a/spec/requests/static_controller_spec.rb
+++ b/spec/requests/static_controller_spec.rb
@@ -96,13 +96,23 @@ describe StaticController do
     end
 
     context "with a static file that's present" do
-      it "should return the right response" do
+      it "should return the right response for /faq" do
         get "/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)
+      end
     end
 
     [

GitHub sha: 01e21805

1 Like