only add path if it's not a trailing slash