If recent pageid:nnnn is occurring in search expression, the possible pages and namespace locations are already known.
When Special:Search is used, that introduces some profile=default and other context which results in namespace limitation, especially consider ns=0 only.
If pageid:nnnn is occurring in search expression, all namespace limitations shall be dropped, since they prevent results when nnnn is located outside main space.