Problem/Motivation

RobotsTxt module (/robots.txt) does not work correctly if default site language is not allowed.

Steps to reproduce

Install RobotsTxt, add another language and disallow access to English (site default)

Proposed resolution

Add 'robots.txt' to pathIsWhitelisted function in LanguageAccessSubscriber.php OR whitelist routes that use _disable_route_normalizer: 'TRUE'

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Victonator created an issue. See original summary.

jeroent’s picture

Status: Active » Needs work

  • jeroent committed f5e323ee on 2.0.x
    feat: #3463367 Support RobotsTxt module
    
    By: jeroent
    
jeroent’s picture

Status: Needs work » Fixed

Merged to 2.0.x. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.