adding base url check for githup pages (final solution...)