Peel and cook the potatoes. Peel the onions, cut into thin rings and fry in olive oil until translucent.
Cut the cooked potatoes into small slices and add to the onions after a few minutes. Season with salt, pepper, thyme and basil. Let it simmer on the stove.
Cook the pasta at the same time.
Just before the pasta is drained, deglaze the potato mixture with about a glass of white wine.
Drain the pasta, pour it back into the saucepan, add the potato and onion mix and stir.