fixing redirect bug after liking post