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

[Proposal] Change default access point to the root instead of /wayback #385

Open
ibnesayeed opened this issue Nov 6, 2018 · 4 comments
Open

Comments

@ibnesayeed
Copy link
Contributor

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.

@ibnesayeed
Copy link
Contributor Author

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">

@ldko
Copy link
Member

ldko commented Nov 6, 2018

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 /.

@ibnesayeed
Copy link
Contributor Author

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.

@qome
Copy link

qome commented Jan 15, 2020

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.

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

3 participants