Image copyright AFP

Sgt Bowe Bergdahl, a US soldier who was held for five years by the Taliban, will face a general court-martial for desertion and other charges.

Gen Robert Abrams overruled a previous recommendation that the case be moved to a lower court with a maximum penalty of 12 months of prison.

Sgt Bergdahl now could be sentenced to life in prison if found guilty.

He was released in exchange for five Taliban officials held at Guantanamo Bay, Cuba, in 2014.

Sgt Bergdahl, 29, gave the first public account of his story last week to the podcast Serial.

The podcast ran excerpts of an interview, in which the soldier claims that he left his base without permission in order to create a crisis and highlight poor leadership within his unit.

His release, initially cheered by President Barack Obama and other officials, quickly became controversial when critics said it ran contrary to policy against negotiating with terrorists.

With news that the recommendation had been disregarded, his lawyer Eugene Fidell sent an email to reporters on behalf of the defence team saying he "had hoped the case would not go in this direction".

Media playback is unsupported on your device Media caption A video shows Sgt Bowe Bergdahl being handed over to US forces

In the same email, he called upon leading Republican presidential candidate Donald Trump to "cease his prejudicial months-long campaign of defamation against our client". Mr Trump has in the past accused the soldier of treason.

The lawyer also asked members of the House and Senate Armed Services Committees to "avoid any further statements or actions that prejudice our client's right to a fair trial".

Five Guantanamo detainees were swapped for the soldier, when he was freed in May of 2014. He had spent almost five years in Taliban captivity, after he walked off his post in Afghanistan in 2009.

Republicans on the House Armed Services Committee accused President Obama of misleading them over the prisoner swap.

The charges were filed against him in March, and his case was recommended for the lower court in October.