alextselegidis/easyappointments

1.5.0 alpha.1 adding a trailing slash

Closed this issue · 6 comments

I installed the 1.4.3 version without problems, then I wanted to try the newer version.

When I go to the URL, https://easyalpha.test in this case, it shows a 404 error page because it adds a trailing slash at the end of the BASE URL
image

This is my config.php:

    const BASE_URL      = 'https://easyalpha.test';
    const LANGUAGE      = 'english';
    const DEBUG_MODE    = TRUE;

    // ------------------------------------------------------------------------
    // DATABASE SETTINGS
    // ------------------------------------------------------------------------

    const DB_HOST       = 'localhost';
    const DB_NAME       = 'easyalpha';
    const DB_USERNAME   = 'root';
    const DB_PASSWORD   = '';

If I remove the extra slash, it can actually reach the installation page, but it will fail to register because of this same problem.

Hello!

Thanks for reporting this.

Unfortunately I cannot reproduce this in any environment.

Were you testing with the latest 1.5 Alpha package?

It would be interesting to also check the HTTP server routing configuration.

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Closing this due to inactivity (feel free to post again in case there are more information)

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

My Setup is the following;

Windows 11 (22631.3672)
Laragon:
image

I have tried both http and https, both leading to the same output


Were you testing with the latest 1.5 Alpha package?

Yes, that's the one I used

Extra Notes

I placed an easyalpha folder in the www directory of Nginx
Laragon creates a virtual host named easyalpha.test, so I can go to that address with SSL. But as I stated previously, there is an extra slash added to the base URL.

If I try localhost/easyalpha on the webbrowser, it will actually try to go to the correct URL, without adding an extra slash, but I get a 404 error instead
image

Hello!

This has to do with the NGINX configuration.

I had this in a couple of cases in the past.

Check out the example from the docker compose set up:

https://github.com/alextselegidis/easyappointments/blob/develop/docker/nginx/nginx.conf

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Hello there, I gave this a try once more. I installed WAMP (which uses Apacha instead) and it's still happening the same output

image

I managed by visiting http://localhost/ezlapha instead