Fix tags search for page search

Had inconsistencies with tag and tags.
Unwanted console.log was also removed

Fixes #1267