Links that are not on the Youtube website in Safari open automatically in the Youtube app. Links that are on the Youtube website in Safari do not open?

Why is this? Is there a way to fix this? Both use the same type of Youtube url.