How tell Safari to open new tab instead of a window
You can use Safari preferences (⌘ ,) to change this setting, you can use automatically or always for opening pages in new tabs instead of new windows.