Audio/video uploads return wrong url when assets are stored on S3

When assets are stored on S3 without a CDN, audio and video uploads are returning the wrong url.

http://tests.testeleven.com//testeleven-forum-assets.s3-us-west-1.amazonaws.com/original/1X/06c34a2cb749a93f3551224a283080483cb417d4.wav

The Discourse.BaseUrl is being added to the upload url without first checking if S3 is being used.

4 Likes

This was fixed by @simon in

https://github.com/discourse/discourse/pull/4222

2 Likes