Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5.0 alpha.1 adding a trailing slash #1537

Closed
SapitoSucio opened this issue May 16, 2024 · 4 comments
Closed

1.5.0 alpha.1 adding a trailing slash #1537

SapitoSucio opened this issue May 16, 2024 · 4 comments

Comments

@SapitoSucio
Copy link

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.

@alextselegidis
Copy link
Owner

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!

@alextselegidis
Copy link
Owner

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!

@SapitoSucio
Copy link
Author

SapitoSucio commented Jun 5, 2024

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

@alextselegidis
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants