Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656386 - URL discrepancies in archives
Summary: URL discrepancies in archives
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Archives (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-24 07:17 UTC by Michał Górny
Modified: 2018-05-30 18:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-05-24 07:17:58 UTC
While using archives heavily, I've noticed a few problems with how they're handling URLs:

1. Most (all?) of them are slash-fragile. If you remove the trailing slash from otherwise valid URL, you get 404.

2. They're not correctly hierarchical. If you remove the month from 'threads' URL, you get 404. It's like having subdirectories of directory that doesn't exist.

3. Empty months cause irritating redirect that causes URL to be rewritten. This is especially unhelpful when scanning archives month by month.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-05-30 18:11:16 UTC
Ok, I've fixed the most irritating issues.  That is:

1. I've added slash/no-slash 301 redirects to canonical URLs,

2. I've added /threads and /messages redirect to month index,

3. I've removed the silly redirects for empty months, and instead I either fall back to message list in threaded view, or display a meaningful message with empty message list.