Munster produced a storming fightback to claim a bonus-point 38-17 victory away to Edinburgh in the United Rugby Championship.

The hosts were on top for most of the first half and led 12-0 and 17-7, but they collapsed in the second half as the visitors scored 31 unanswered points to claim a well-deserved win.

There was an emotional moment's applause before kick-off as a tribute to former Scotland international Doddie Weir, who lost his battle with motor neurone disease last weekend.

Edinburgh – with most of their internationals back after the autumn series – wasted little time finding their stride and went ahead with just two minutes on the clock when Chris Dean raced in behind the posts after being fed by Luke Crosbie. Blair Kinghorn made no mistake with the kick.

The hosts spent much of the early stages on the front foot and in the 15th minute rampant winger Darcy Graham – fresh from his hat-trick for Scotland against Argentina a fortnight ago – intercepted a pass just inside his own half and dashed clear down the right to score his ninth URC try of the season. Kinghorn saw his conversion attempt come back off the post.

Peter O'Mahony pays tribute to the late Dodie Weir

Having fallen 12 points behind, Munster started to come to life and they got themselves back in the game in the 24th minute when Craig Casey forced his way over after a sustained spell of pressure. Joey Carbery was successful with the conversion.

Edinburgh’s early momentum was further disrupted in the 27th minute when Graham had to go off injured, replaced by Jaco van der Walt.

But the hosts regained their poise and stretched their lead in the 37th minute when Scotland captain Jamie Ritchie spun away from a couple of tackles wide on the right and touched down after good play by Dean and Kinghorn to set him up. Kinghorn was off target with the conversion.

Munster reduced their deficit to just three points in the last action of the half, however, when Rory Scannell found a gap in the Edinburgh defence to bound over from close range and Carbery made no mistake with the conversion.

Munster players taking a moment to remember Dodie Weir

The visitors got themselves in front for the first time just two minutes into the second half when Calvin Nash burst gleefully between the posts, with Carbery again converting.

After a dominant start to the second half, Munster – who had trailed 17-7 towards the end of the first half – went 11 points in front after 53 minutes when Gavin Coombes forced his way over the line and Carbery added the extras.

Carbery then took the score to 31-17 when he continued his immaculate kicking to send a penalty between the posts in the 64th minute. And the number 10 capped off a fine night for himself when he scored a try and then converted in the very last action of the night.