fix navigation when deleting project

@umop 

fix for #3440 
Could => inline this block, too