Minor githubs refactoring, like 1 function for api->html urls