This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/main by this push: new e5e3fb9 fix: camel-kamelets redirects e5e3fb9 is described below commit e5e3fb9460a14dd26d72fe9821d3ad7c24c96274 Author: Zoran Regvart <zo...@regvart.com> AuthorDate: Thu Nov 4 14:57:53 2021 +0100 fix: camel-kamelets redirects Fixes #661 --- static/.htaccess | 2 +- tests/redirect.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/static/.htaccess b/static/.htaccess index c128013..2165b7d 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -1303,7 +1303,7 @@ RewriteCond %{REQUEST_FILENAME} !-f # e.g. camel-k, camel-karaf and camel-kafka-connector, so we don't match # partialy and capture the rest of the Antora component name in subsequent # groups, that's why we have the negative lookahead in the camel-k option -RewriteRule ^(components|camel-spring-boot|(?:camel-k(?!afka-connector|araf)|camel-kafka-connector|camel-karaf)|camel-quarkus)(?|(/latest)|(?!/next))/?(.*)$ /$1/next/$3 [R=permanent,L] +RewriteRule ^(components|camel-spring-boot|(?:camel-k(?!afka-connector|araf|amelets)|camel-kafka-connector|camel-karaf|camel-kamelets)|camel-quarkus)(?|(/latest)|(?!/next))/?(.*)$ /$1/next/$3 [R=permanent,L] # manual is now unversioned Redirect 301 /manual/latest/ /manual/ diff --git a/tests/redirect.sh b/tests/redirect.sh index b9398cb..da3ba19 100755 --- a/tests/redirect.sh +++ b/tests/redirect.sh @@ -61,6 +61,15 @@ test $BASE_URL/camel-kafka-connector/latest/ 301 $BASE_URL/camel-kafka-connector test $BASE_URL/camel-kafka-connector/latest/contributor-guide/release-guide.html 301 $BASE_URL/camel-kafka-connector/next/contributor-guide/release-guide.html test $BASE_URL/camel-kafka-connector/next/contributor-guide/release-guide.html 200 +test $BASE_URL/camel-kamelets 301 $BASE_URL/camel-kamelets/next/ +test $BASE_URL/camel-kamelets/ 301 $BASE_URL/camel-kamelets/next/ +test $BASE_URL/camel-kamelets/next 301 $BASE_URL/camel-kamelets/next/ +test $BASE_URL/camel-kamelets/next/ 200 +test $BASE_URL/camel-kamelets/latest 301 $BASE_URL/camel-kamelets/next/ +test $BASE_URL/camel-kamelets/latest/ 301 $BASE_URL/camel-kamelets/next/ +test $BASE_URL/camel-kamelets/latest/github-source.html 301 $BASE_URL/camel-kamelets/next/github-source.html +test $BASE_URL/camel-kamelets/next/github-source.html 200 + test $BASE_URL/camel-quarkus 301 $BASE_URL/camel-quarkus/next/ test $BASE_URL/camel-quarkus/ 301 $BASE_URL/camel-quarkus/next/ test $BASE_URL/camel-quarkus/next 301 $BASE_URL/camel-quarkus/next/