Fix bug with links when path ended without /