Are both of your example pages in the same namespace? If not: not all
namespaces have subpages enabled by default, which is required for this
kind of links to work.
https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages#Enabling_fo…
--
Bartosz Dziewoński