Link field to path (automatically pulling Node Id)
Make sure to have the Token module installed.

Then, to be able to use the [nid] token, you'll have to add a Node ID field and move it before the Node name one to be output as link. The nid field you can Exclude from display.

In the node name field then, set custom path to details/[nid].