Nothing to do with Ubuntu. The default in Firefox in Ubuntu is to open in a new tab, not a new window. You must have changed your Firefox settings. To change back, click on the hamburger lines top...