Correctly handle extensions links in header and footer