fix(template): change baseUrl detection