openwayback
openwayback copied to clipboard
[Proposal] Change default access point to the root instead of /wayback
To simplify the Getting Started experience, we might want to change the default access point from /wayback
to /
or make the form in the landing page submit to the default access point (currently it submits the form to /query
which returns 404
). Advanced configurations such as multiple access points should still be possible and corresponding configurations should be documented.
The default landing page does show an error:
You seem to be accessing this OpenWayback via an incorrect URL. Please try one of the following AccessPoints:
wayback
This is OpenWayback. Any URL in ARC or WARC files accessible to this service can be searched above.
However, the search form on the landing page is:
<form action="query" method="get">
Which submits to the incorrect location.
The same form's action attribute changes to a full URL when /wayback
page is opened:
<form action="http://localhost:8080/wayback/query" method="get">
It is confusing to have a search box at /
when that is not an access point and will lead to a /query
url that is a 404
as you point out. Perhaps there shouldn't be a search form there at all if it is not a valid access point. I do run multiple access points on some instances of OpenWayback and would not really like to guess which one a user is trying to search in at /
.
An alternative approach would be to add a dropdown/datalist menu to the search form only if there are more than one access points configured, otherwise use the default.
Why not search all access points when at /
?
EDIT: It occurs to me that might be what /wayback
does but I actually don't know because I use a single access point at this time.