osm-fr / osmose-frontend

Part of osmose that shows results on the website http://osmose.openstreetmap.fr
GNU General Public License v3.0
41 stars 38 forks source link

Redirect http to https #432

Closed Dimitar5555 closed 4 months ago

Dimitar5555 commented 1 year ago

Currently when trying to open http://osmose.openstreetmap.fr the browser is loading/trying to connect for a very long time before giving up. It would be very useful if there was an automatic redirect to the https version of the requested page.

frodrigo commented 1 year ago

I does not see this issue. Maybe be a temporary issue? Do you still have it ?

Dimitar5555 commented 1 year ago

Yes, I still have it. I'm using Firefox 107.0 (latest release version as of now) if that makes any difference.

jocelynj commented 1 year ago

That's very strange. Do you see the same issue when opening https://osmose.openstreetmap.fr, or http://beta.osmose.openstreetmap.fr?

frodrigo commented 1 year ago

Do you konw if your are using ipv6 or not?

Dimitar5555 commented 1 year ago

That's very strange. Do you see the same issue when opening https://osmose.openstreetmap.fr, or http://beta.osmose.openstreetmap.fr?

Only when opening the second link, the first one works as expected (since it's https).

Do you konw if your are using ipv6 or not?

afaik IPv6's Windows service is disable on my machine and it shouldn't be able to access IPv6 addresses. https://ipv6-test.com shows IPv6 connectivity as "Not supported".

Marc-marc-marc commented 1 year ago

the redirect from http send to an url with a wrong (second) redirect $ wget -4 -O - http://osmose.openstreetmap.fr

HTTP request sent, awaiting response... 302 Found Location: https://osmose.openstreetmap.fr/map/ [following]

HTTP request sent, awaiting response... 307 Temporary Redirect Location: //map/ [following]

note the unwanted // that send to user to a domain "map"

Resolving map (map)... failed: No address associated with hostname.

maybe an issue if the lang is missing/not detected because it's the same issue if you try wget -4 -O - https://osmose.openstreetmap.fr in a browser, the redirect is /fr/map/

frodrigo commented 1 year ago

Resolving map (map)... failed: No address associated with hostname.

It do it with wget but not with firefox.

It is rather an issue for https://github.com/osm-fr/infrastructure/issues than directly osmose ?

frodrigo commented 4 months ago

Now we redirect to HTTPS