fixind restful redirect