Best way to link to a page relative the site's baseurl

I don’t get to post the same thing twice, but since this is a Google drop point: Best way to reference an image in `/static` directory when baseURL could contain a sub-directory?