AUR web interface

Tasklist

FS#51266 - possibly confusing error message when following the "Git Clone URL" link in the browser

Attached to Project: AUR web interface
Opened by Philipp Claßen (PhCl) - Thursday, 06 October 2016, 23:00 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 22 October 2016, 07:12 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version 4.3.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Not sure if that is the correct place to bring it up, but the error message when clicking on the linked "Git Clone URL" is a bit misleading:

"Sorry, the page you've requested does not exist."

That looks like the URL is broken, which is not the case. I understand that the URL is only intended to be used as "git clone <url>", maybe a different error message might avoid confusion. People generally assume that they can follow links in the browser.

Example: pepper-flash
https://aur.archlinux.org/packages/pepper-flash/
https://aur.archlinux.org/pepper-flash.git
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Saturday, 22 October 2016, 07:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 4.4.0.
Comment by Daniel M. Capella (polyzen) - Friday, 07 October 2016, 00:01 GMT
Can't think of a good reason for these links to be clickable.
Comment by Johannes Löthberg (demize) - Friday, 07 October 2016, 06:08 GMT
It makes it easier to copy them by just right-clicking and selecting "copy link address" for one.
Comment by Daniel M. Capella (polyzen) - Friday, 07 October 2016, 06:33 GMT
Triple-clicking to highlight the entire line is also just as simple.
Comment by Johannes Löthberg (demize) - Friday, 07 October 2016, 07:57 GMT
Not as long as we have the (read-only) note there, and it's unlikely that we'll remove that considering how many people were confused about it.
Comment by Dave Reisner (falconindy) - Friday, 07 October 2016, 12:02 GMT
If the point of the link is ease of copypasta, wouldn't it make more sense to just make the link a <span> that highlights itself when you click it?
Comment by Daniel M. Capella (polyzen) - Friday, 07 October 2016, 16:11 GMT
Ah, right. Sounds good to me.

JS/JQuery are in use.. Could do click-to-copy. ;p
Comment by Lukas Fleischer (lfleischer) - Saturday, 08 October 2016, 10:59 GMT
I added an experimental patch to our setup that improves the error message. What do you think?
Comment by Daniel M. Capella (polyzen) - Saturday, 08 October 2016, 12:17 GMT
:+1:

Loading...