Unless the refugees are guaranteed a right to return, then you're just asking for Jordan and Egypt to facilitate ethnic cleansing and finishing the job.
Israel has a secret* agreement with Egypt which it made Egypt sign as a condition for not occupying the border between Gaza and Egypt, which stipulates what Egypt can and can't let through the border.
*The existence of the agreement is not secret, but the contents are.
If they are blockaded by the country that they cant get along with then it is at least partially on Egypt and Jordan that they are given no way out.