generate path alias on correct language, and fix a bug in guide toc.