Override url opened by button “View Invoice”

You should visit “Settings” – “Interface” and turn on “Show button “View invoice”.

You need PHP code to change url.  This code depends on plugin which you use  to generate invoices.