A man has been sent to Broadmoor, a high security mental health hospital, under the mental health act.
30-year-old Karl Addo attacked and decapitated 23-year-old student Sergio Marquez last July. He had suffered from mental illness for several years.
Mr Maquez's family said he had only wanted to work, learn and help others. They said he was impossible to replace.
His killer also received a prison sentence to run concurrently, of life imprisonment. He must serve a minimum of 6.5 years.
More top news
Sunday evening's weather for the east
Sunday evening's weather for the west
Ruth Davidson said that international helpers who exploits the vulnerable for sex occupy "the lowest circle of Hell".