Fix catrgory extraction bug and get rediects from XMLmarkup instead of wikimarkup.