Fix #14411 in hosted docs by porting over 71c2c372f6a14ea