-
Notifications
You must be signed in to change notification settings - Fork 33
Description
A feature request to improve 404 behavior as it relates to MultiViews support.
Three options exist for this feature request, either:
- (A) Provide a functioning alternative URL in the 404 result to the desired content
- (B) Similar to (A), but redirect to the functioning URL instead (302)
- (C) Or, allow paths for both multiViews=true|false to function simultaneously
All options would provide a smoother transition from one method to another. Today I attempted a move to mutiViews=true but we have many old links (in old bug reports, for example) that turn into blank 404 pages so we feel stuck keeping it false.
The contents of these 404 pages (as of WebSVN v2.7.0) for a standard file view are:
- With multiViews=false: the multiview URLs offer a 404 stating why it's not found, similar to:
MultiViews must be enabled in include/config.php in order to use browse.php. See
the install docs for details, or use this path instead.
Important: the "this path" does not provide a desirable path; instead it's a static value to the root page.
- With multiViews=true: the non-multiview URLs offer a blank 404, similar to:
WebSVN 404 No repository given.
Ideally each 404 page would link to a functioning URL for the desired content (allowing options (A) and (B)) but (C) would be an okay but potentially more complicated option.
All hints for implementing the simpler (A) option are welcome! There are a lot of renderTemplate404() references and contexts; and thus far I got it working for basic file viewing to replace 'WebSVN 404 NOREP' but wonder if there's a simpler way. Would moving operation logic out of multiviews.php make sense for this?