In case of Custom Admin URL (in System -> [Advanced] Admin -> Admin Base URL) is set to something like http://mytreasure.store.com after creation of order or invoicing it Magento redirects back to the base url. I pin-pointed this to the store view change to the one order being assigned to
But whatever this is a bug or misconfiguration I really wonder
Magento is CE 1.7 fully patched