Prepare the pasta in boiling salted water according to the instructions on the packet. Peel onions and garlic and dice finely. Heat the oil in a pot. Sauté onions and garlic in it. Add sugar and caramelize, deglaze with vinegar.
Add tomatoes and capers and simmer for 8-10 minutes.
Drain the pasta and let it cool down. Roast the pine nuts in a pan without fat, set aside. Mix the pasta with the sauce. Wash the basil, shake dry and chop finely. Pluck salmon into bite-sized pieces.
Fill pasta salad in bowls. Arrange salmon, pine nuts and basil on top. Sprinkle with coarse pepper.