Mchllar / SGS

0 stars 0 forks source link

Most Links and Redirections are Hard-coded #1

Open coolsam726 opened 3 weeks ago

coolsam726 commented 3 weeks ago

The Issue

Most of the Links in the codebase are hard-coded, hence the server does not honor redirections when the project is hosted in a subdirectory. For example, if the project is hosted under https://suguta.strathmore.edu/sgs, the following form is supposed to submit to https://suguta.strathmore.edu/sgs/users/authenticate, but it currently submits to https://suguta.strathmore.edu/users/authenticate hence breaking the functionality.

image

Potential Solutions:

coolsam726 commented 3 weeks ago

Here is the result of login: image

PeterDavid3800 commented 3 weeks ago

The changes have been made and committed to this repository