You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2021/11/15 06:28:03 UTC

[sling-site] branch master updated: Correct description for sling:redirect for a vanity path

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 1341ffc  Correct description for sling:redirect for a vanity path
1341ffc is described below

commit 1341ffc28380a38e1da9ae34bd0848c587710b6a
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Nov 15 07:27:40 2021 +0100

    Correct description for sling:redirect for a vanity path
---
 .../documentation/the-sling-engine/mappings-for-resource-resolution.md  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md b/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md
index 8bfca94..05c7d3e 100644
--- a/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md
+++ b/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md
@@ -263,7 +263,7 @@ Instead if the `sling:alias` property is set in any resource under `/content` (e
 While an alias can provide a variation for a resource name, a vanity path can provide an alternative path for a resource. The following properties can be set on a resource:
 
 * `sling:vanityPath` &ndash; This property when set on any resource defines an alternative path to address the resource.
-* `sling:redirect` &ndash; This property when set on a resource with a vanity path causes a redirect response to be sent to the client, which causes the client to send in a new request with the modified location. The value of this property is applied to the actual request and sent back as the value of `Location` response header.
+* `sling:redirect` &ndash; This boolean property when set to `true` on a resource with a vanity path causes a redirect response to be sent to the client, which causes the client to send in a new request with the modified location. The value of the `sling:vanitaPath` property is applied to the actual request and sent back as the value of the `Location` response header.
 * `sling:redirectStatus` &ndash; This property defines the HTTP status code sent to the client with the `sling:redirect` response. If this property is not set, it defaults to 302 (Found). Other status codes supported are 300 (Multiple Choices), 301 (Moved Permanently), 303 (See Other), and 307 (Temporary Redirect).
 * `sling:vanityOrder` &ndash; It might happen that several resources in the resource tree specify the same vanity path. In that case the one with the highest order is used. This property can be used to set such an order.