Fix slug properly in doc_path