How to avoid following redirects?

From semantic-mediawiki.org

It would be nice to have on this help page an example of how to keep redirecting page name if the property of type Page links to a redirection page.

To be verbose and more specific:

1) Let us define "Full name" and "Short name" as a properties of type Page

2) on some page in category 'Names' put the text:

The full name of [[Short name::Bart]] is [[Full name::Bartolomeo]]. 

3) create page 'Bartolomeo' with some information about the name.

4) put redirection to 'Bart' page

#redirect[[Bartolomeo]]

5) make request

{{#ask: [[Category: Names]]
 |?Short name

6) we get 'Bartolomeo' page as a result, but how to keep it 'Bart'?

Several hours of digging the SMW site did not give me a result. Bad luck or lack of information? 24pm (talk) 05:51, 7 September 2018 (CEST)

05:51, 7 September 2018

This is expected behavior if property "Short name" is of datatype "Page". Sometimes the solution is easier than one may think. Switch this property to datatype "Text" and you will get the desired result. I recommend to also set up examples on the sandbox to make it easier to fiddle.

16:59, 7 September 2018

Indeed! Simple and helpful. Thank you!

06:47, 12 September 2018