Page MenuHomePhabricator

robots noindex,nofollow not set
Closed, ResolvedPublic

Description

Author: schinken

Description:
If the permissions for editing pages is restricted to guests, the meta-tags for robots are not set (noindex,nofollow)

It happens inside the EditPage-Function, where the Permissions are checked.
If the user is not allowed to edit a page, it returns from that function and never executes the "setHeader" function.

This function is responsible for setting the robots noindex,nofollow metatag


Version: 1.19
Severity: normal

Details

Reference
bz37755

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:24 AM
bzimport set Reference to bz37755.
bzimport added a subscriber: Unknown Object (MLST).

oren wrote:

Set 'noindex,nofollow' robot meta tag on 'view source' pages

I believe this patch is important for SEO reasons. I see no good reason to allow crawlers to index 'view source' mode in addition to the regular article view.

Attached:

Hi Oren, thanks for your patch!

You are welcome to use Developer access

https://www.mediawiki.org/wiki/Developer_access

to submit this as a Git branch directly into Gerrit:

https://www.mediawiki.org/wiki/Git/Tutorial

Putting your branch in Git makes it easier for us to review it quickly.
Thanks again! We appreciate your contribution.

oren wrote:

Thanks! So much better indeed, not sure how come I missed that in the developer docs.

Submitted to Gerrit (https://gerrit.wikimedia.org/r/#/c/27867/).

  • Bug 44730 has been marked as a duplicate of this bug. ***