improved path handling for edit article page