Open coolsam726 opened 3 weeks ago
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.
route
route('your-route-name')
url
url('your-path')
Here is the result of login:
The changes have been made and committed to this repository
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.
Potential Solutions:
route
helper as follows:route('your-route-name')
url
helper to properly append the base url:url('your-path')