Last modified: 2013-02-08 15:53:38 UTC
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
Created attachment 11186 [details] 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.
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.
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/).
Change merged.
*** Bug 44730 has been marked as a duplicate of this bug. ***