discourse/app
Martin Brennan 62f2e1f971
FIX: Stop double prepending of window.location.origin on media URLs (#10275)
This fixes an issue where sometimes when composing a post and uploading a video/audio file, _loadCachedShortUrls/the uploads controller would return a full URL with origin, instead of just the URL with the host e.g. http://localhost:3000/some/video.mp4 instead of just //localhost:3000/some/video.mp4. We were prepending window.location.origin onto the URL no matter what, and since http://localhost:3000/some/video.mp4 does not match the host URL regex, we were ending up with something like http://localhost:3000http://localhost:3000/some/video.mp4 which broke composer previews. This was only noticed with a video upload in a secure upload environment.
2020-07-22 09:23:55 +10:00
..
assets FIX: Stop double prepending of window.location.origin on media URLs (#10275) 2020-07-22 09:23:55 +10:00
controllers FEATURE: Create logs for Group Moderator changes (#10271) 2020-07-21 14:29:02 -04:00
helpers Revert "PERF: Move highlightjs to a background worker, and add result cache (#10191)" 2020-07-15 13:52:35 +01:00
jobs FEATURE: Allow group moderators to close/archive topics 2020-07-14 12:36:19 -04:00
mailers FEATURE: Implement support for IMAP and SMTP email protocols. (#8301) 2020-07-10 12:05:55 +03:00
models FEATURE: Create logs for Group Moderator changes (#10271) 2020-07-21 14:29:02 -04:00
serializers FIX: Remove username_lower from admin serializer 2020-07-21 14:00:43 -04:00
services FEATURE: Create logs for Group Moderator changes (#10271) 2020-07-21 14:29:02 -04:00
views FIX: Correct user profile URLs in /about crawler view 2020-07-14 16:09:27 +01:00