A British Airways flight bound for Germany ended up in Scotland because of a paperwork mix-up, the airline confirmed to Fox News.

The 525-mile mistake happened Monday, after an incorrect flight plan was filed, changing the flight path of the London, England flight from Düsseldorf, Germany – where it was originally scheduled to land – to Edinburgh, Scotland.

NAKED MAN ATTEMPTS TO BOARD FLIGHT AT MOSCOW AIRPORT, CLAIMS NUDITY MAKES HIM MORE 'AERODYNAMIC'

Passengers on the hourlong flight did not realize they landed in a different country until the pilot made an announcement welcoming them to Edinburgh, BBC reported.

Passenger Sophie Cooke told the BBC that those on the flight thought the pilot was joking, until flight crew confirmed that they were in Scotland.

"The pilot said he had no idea how it had happened. He said it had never happened before and that the crew was trying to work out what we could do," Cooke said.

FOLLOW US ON FACEBOOK FOR MORE FOX LIFESTYLE NEWS

British Airways confirmed the incident to Fox News and said in a statement they were following up with German firm WDL Aviation, which operated the flight for the airline.

“We are working with WDL Aviation, who operated this flight on behalf of British Airways, to establish why the incorrect flight plan was filed,” the statement read. “We have apologized to customers for this interruption to their journey and will deal with them all individually.”

CLICK HERE TO GET THE FOX NEWS APP

The flight was redirected to Düsseldorf two-and-a-half hours after the “involuntary stopover in Edinburgh,” turning the typical hour-and-ten minute flight into a nearly six-hour journey.

British Airways said the safety of the passengers was never “compromised.”