Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212610 - Add 404 pages
Summary: Add 404 pages
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: [OLD] gpackages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Packages Website
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-07 19:03 UTC by Raúl Porcel (RETIRED)
Modified: 2015-10-01 14:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Return 404 for bad query parameters or when there are no results instead of redirecting to / (0001-Don-t-direct-to-when-the-query-parameters-are-bad-or.patch,4.69 KB, patch)
2011-09-11 18:10 UTC, Alec Warner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl Porcel (RETIRED) gentoo-dev 2008-03-07 19:03:01 UTC
Something like this: http://www.gentoo.org/ubuntu
would be cool.

ATM if you type a wrong url on packages.g.o, it redirects to the main page, which makes you lose the URL you tried to browse.
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-03-07 19:03:34 UTC
Bah, sorry for the bugspam
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-08 04:50:45 UTC
No, it doesn't redirect you at the moment.

http://packages.gentoo.org/ubuntu
Just gives you a 404.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2010-03-08 06:22:55 UTC
Ok, this is what i mean, sorry i didn't specify it:

http://packages.gentoo.org/package/glibccc?arches=linux
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2011-02-11 22:30:36 UTC
This cannot be done trivially in apache, because IMHO the queries is passed to the python-handler. I guess you need to "raise cherrypy.HTTPError(404)" there.
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2011-09-11 18:10:10 UTC
Created attachment 286143 [details, diff]
Return 404 for bad query parameters or when there are no results instead of redirecting to /
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2015-10-01 14:33:09 UTC
Will no longer affect our replacement site due to launch soon. Closing.