Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939894 - [404] USE flag in wiki.gentoo.org are missing "+" in URL while trying to redirect
Summary: [404] USE flag in wiki.gentoo.org are missing "+" in URL while trying to redi...
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Packages Website
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-20 09:05 UTC by Kévin GASPARD DE RENEFORT
Modified: 2025-03-07 18:17 UTC (History)
2 users (show)

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 Kévin GASPARD DE RENEFORT 2024-09-20 09:05:56 UTC
Hello,

Today I realized, as seen of this page: https://packages.gentoo.org/useflags/+jumbo-build

A 404 is returned, while when removing the "+" (plus) sign in the URL works.

It breaks the redirection and you have to manually remove the "+" (plus) sign to make it works.

That is reproducible every time you see a USE flag with "+" (plus) sign in front of the use flag name in wiki.gentoo.org's page, but from packages.gentoo.org's page USE flag list of a package, like here: https://packages.gentoo.org/packages/dev-qt/qtwebengine

This is _not_ happening, while here: https://wiki.gentoo.org/wiki/QtWebEngine

It does. 

So I guess the problem is only from wiki.gentoo.org while using this syntax:

{{USEflag|package=category/packagename}}

I guess a work around would be to redirect on the page and removing the "+" (plus) sign on the server web side, with a rewrite for example, on the wiki.gentoo.org's virtual host ? Simple suggestion of course.

Regards,
GASPARD DE RENEFORT Kévin
Comment 1 Alfred Wingate 2025-01-20 13:29:56 UTC
Assigned to p.g.o as they would have the best idea if p.g.o should support this url with a redirection.

I'm under the impression that this must've worked before for the wiki?
Comment 2 Larry the Git Cow gentoo-dev 2025-03-07 18:17:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/sites/soko.git/commit/?id=d1391af261265a8bae67393b72ed905451ee40fa

commit d1391af261265a8bae67393b72ed905451ee40fa
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2025-03-07 18:16:47 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2025-03-07 18:16:47 +0000

    useflags: auto redirect useflags which start with + or -
    
    Closes: https://bugs.gentoo.org/939894
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 pkg/app/handler/useflags/show.templ | 8 ++++++++
 1 file changed, 8 insertions(+)