DataONEorg / dataone-web

DataONE static website
Apache License 2.0
2 stars 1 forks source link

Data | Find Data and Portals links broken #161

Closed datadavev closed 2 years ago

datadavev commented 2 years ago

Bryce reported that the Data | Find Data and Portals links on the dataone.org page are broken.

The Data | Find Data link location redirects to https://old.dataone.org/data:

 htrace -m "https://dataone.org/data"
> GET: https://dataone.org/data
< 301 https://www.dataone.org/data
< 0.2528 sec
> GET: https://www.dataone.org/data
< 302 https://old.dataone.org/data
< 0.2363 sec
> GET: https://old.dataone.org/data
< 200 text/html; charset=utf-8
< 0.2829 sec
SUMMARY: Start URL: https://dataone.org/data
SUMMARY: Final URL: https://old.dataone.org/data
SUMMARY: Start: 2021-10-26T13:02:13+0000
SUMMARY: Num requests: 3
SUMMARY: Elapsed: 0.772 seconds

Similarly for the Portals link:

htrace -m "https://dataone.org/portals"
> GET: https://dataone.org/portals
< 301 https://www.dataone.org/portals
< 0.2355 sec
> GET: https://www.dataone.org/portals
< 302 https://old.dataone.org/portals
< 0.2377 sec
> GET: https://old.dataone.org/portals
< 404 text/html; charset=utf-8
< 0.4888 sec
SUMMARY: Start URL: https://dataone.org/portals
SUMMARY: Final URL: https://old.dataone.org/portals
SUMMARY: Start: 2021-10-26T13:05:11+0000
SUMMARY: Num requests: 3
SUMMARY: Elapsed: 0.962 seconds

This is may be due to an Apache configuration reverting to a default virtual host.

laurenwalker commented 2 years ago

Yes I think this may have to do with those links being MetacatUI links, so technically there is no resource on the server for the data and portals paths. MetacatUI paths are configured to use a FallbackResource to direct to index.html

laurenwalker commented 2 years ago

Ah nevermind, I see the redirect to old.dataone.org now. Not sure how that is happening