Fix s3 url to work correctly and work in development