change get_path() to get_permalink()

get_path() was returning the site url instead of the post's url.