Fix to use base URL instead of base DIR