The issue is that if nodes on the site have aliases with assigned languages, then the paths generated for the validator script are incorrect - they miss the language prefix (in my case, I have language selection base on prefixes). For know I solved it in a very lame way (commented out is original code, below mine):

  global $language;

  //$path = drupal_get_path_alias($path);
  $path = url($path, array('language' => $language));

  //$url = $base_url .'/'. $path;
  $url = $base_url . $path;

This will of course not work in other language selection modes, but I don't know how to generate the address correctly. Maybe someone with deeper understanding of Drupal API could help out with this? It seems really simple to fix, just one call to the correct function.

Comments

TripleEmcoder’s picture

Heh, I forgot to write where the code I changed resides. It's w3c_validator.module, beginning of function w3c_validator_site_validate_path.

dom.’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

6.x version is no more supported. Not enough users and not enough life expectancy now that D8 will be released.