link_to after edit or delete with AJAX

I have a partial that is updated after edit and delete actions like this: $('#notes_content').html("<%= escape_javascript(render("notes"))%>"); the question is that after update the partial every link_to include the id of the updated/destroyed item link http://url/id?page=2 instead of http://url?page=2 This include the will_paginate links