rogeriofalcone / sappira

Automatically exported from code.google.com/p/sappira
0 stars 0 forks source link

Pages Should Not Return 404 #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Navigate to either of 
1. http://127.0.0.1:8000/medical_record/
2. http://127.0.0.1:8000/inpatient/

What is the expected output? What do you see instead?
The pages should redirect to a default page.

Original issue reported on code.google.com by andrewa...@gmail.com on 4 Nov 2009 at 8:18

GoogleCodeExporter commented 9 years ago

Original comment by andrewa...@gmail.com on 5 Nov 2009 at 12:28

GoogleCodeExporter commented 9 years ago
We can do one of the following here:
1. Have a standard 404 page here when DEBUG=False 
2. Redirect to login page if user not logged in.
   Redirect to inpatient/admissions/ or medical_record/patient/ if user logged in.

I think 2 is standard practice. Any comments ?

Original comment by meenalp...@gmail.com on 18 Nov 2009 at 9:07

GoogleCodeExporter commented 9 years ago
Added the redirect in r242
Do we need to re-factor urls? Two urls point to the same page now.
inpatient/ and  inpatient/admissions/ & medical_record/ and 
medical_record/patient/.

Original comment by meenalp...@gmail.com on 24 Nov 2009 at 8:22