Do not mark pages as active if there are query parameters (see #7189)