This is an automated email from the ASF dual-hosted git repository. kwin pushed a commit to branch feature/improve-latest-apidocs-redirect in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit 9f2d2acaa87c17eff7c569ea8a340d418ed03c92 Author: Konrad Windszus <[email protected]> AuthorDate: Fri Dec 12 13:53:06 2025 +0100 Allow deep references below /apidocs/latest --- src/main/jbake/assets/.htaccess | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/jbake/assets/.htaccess b/src/main/jbake/assets/.htaccess index 35f919514..53e9a5ca3 100644 --- a/src/main/jbake/assets/.htaccess +++ b/src/main/jbake/assets/.htaccess @@ -21,8 +21,7 @@ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] AddDefaultCharset utf-8 # Redirect to API docs of latest sling release -RewriteCond %{REQUEST_URI} ^/apidocs/latest/?$ -RewriteRule ^ /apidocs/sling13/ [R=302,L] +RewriteRule ^/apidocs/latest(/.*)?$ /apidocs/sling13$1 [R=302,L] # Error pages ErrorDocument 403 /errors/403.html
