Bad number of pages count in a category

From semantic-mediawiki.org

Hello,

I'm trying to get the actual number of pages which are in a category with following query :

{{#ask: [[Category:a category]] |format=count}}

Unfortunately, the results includes redirected pages and thus is superior to the right result expected.

How can I exclude redirected pages from this query ?

Thanks,

Nicolas NALLET (Sémantiki)

15:57, 8 December 2015

It seems to work here [0] (unless I have misunderstand the issue).

[0] http://sandbox.semantic-mediawiki.org/wiki/CountExample

16:22, 8 December 2015
 

I have also seen it on one particular query, [0] suggests a patch and it would be great if you could apply/test/verify this before we make an effort to push this into the master branch.

[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1301

07:26, 9 December 2015

Ok thanks MWJames, I'm trying this patch soon and tell you if it's working.

Nicolas NALLET (Sémantiki)

11:54, 11 December 2015

Sorry for the late reply. Unfortunately the patch did'nt fix the problem. I will test with SMW 2.4 when available.

Thanks

Nicolas NALLET (Sémantiki)

11:37, 8 March 2016

Is this still an issue?

19:48, 4 December 2018