adding base url check for githup pages