fixed issue with url of external posts in sidebar