Josip Stanisic has signed a new long-term contract with Bayern Munich ahead of linking up with Croatia for the World Cup.

The 22-year-old defender joined Bayern in 2017 and has been part of the first-team squad since April last year.

He has made 29 appearances for the reigning Bundesliga champions in total, 13 of those being starts, and has featured in 11 matches this season.

Bayern confirmed on their official website on Saturday that Stanisic, a member of Croatia's 26-man squad for Qatar 2022, has put pen to paper on a deal running until July 2026.

"This contract extension is a nice vote of confidence from FC Bayern, which I'd like to repay and which motivates me a lot for my further development," Stanisic said.

"As someone born in Munich, it's a dream to be able to play in this shirt. My goal is to win as many titles as possible with FC Bayern."

Confirmation of academy product Stanisic's new deal comes a day after back-up goalkeeper Sven Ulreich extended his contract until the end of next season.

Bayern face Schalke on Saturday for their final Bundesliga outing prior to the World Cup hiatus.