Glee creator Ryan Murphy has revealed he had originally planned to reunite Lea Michele and Cory Monteith's characters in the finale of the hit show.

Murphy has always maintained he knew how the show was going to end from the beginning, but he was forced to change his plans after the untimely death of Monteith in July of this year.

He originally wanted Monteith, who played Finn Hudson, to be reunited with his high-school sweetheart, Rachel Berry, who is played by the late star's real-life girlfriend Lea Michele.

Murphy revealed his ideas during the eulogy he delivered at a memorial service for the Canadian actor, which has now been published in the latest issue of Entertainment Weekly.

In the tribute, Murphy said: "For me, Cory was both the beginning and the ending of Glee... literally.

"The ending of Glee is something I have never shared with anyone, but I always knew it. I've always relied on it as a source of comfort, a North Star."

Murphy continued: "The very last line of dialogue was to be this: Rachel (Michele's character) comes back to Ohio, fulfilled and yet not, and walks into Finn's glee club. 'What are you doing here?' he would ask. 'I'm home,' she would reply. Fade out. The end."

The loss of Monteith forced Murphy to rework the storyline and he decided to kill off the actor's character so he could give both the tragic star and his TV persona a final farewell in an emotional memorial episode.