After discussing with @nickgravgaard. Should be careful calling the variable `base_url` as it's a path name.