discourse/test/javascripts
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
..
acceptance FEATURE: Add "delete on owner reply" bookmark functionality (#10231) 2020-07-21 10:00:39 +10:00
admin DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
components FIX: Raw jQuery usage in tests 2020-07-20 15:13:49 -04:00
controllers FIX: passwordRequired is a computed property 2020-07-17 15:07:49 -04:00
ember Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
fixtures FIX: Fewer broken image paths in tests 2020-07-17 15:43:17 -04:00
helpers FEATURE: Allow group moderators to add/remove staff notes (#10252) 2020-07-20 15:53:47 -04:00
initializers DEV: Update ESLint to remove I18n global 2020-05-14 10:18:12 -04:00
lib FIX: Stop double prepending of window.location.origin on media URLs (#10275) 2020-07-22 09:23:55 +10:00
mixins Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
models FIX: test for fillGapBefore (#10272) 2020-07-22 07:33:55 +10:00
utils Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
widgets FIX: More 404 image requests in test 2020-07-17 14:58:32 -04:00
plugin_tests.js.erb FIX: Allow plugins to provide test directories with transpiled .js 2020-06-16 14:31:01 -04:00
test_helper.js FIX: Silence route-recognizer source map errors in development mode 2020-07-15 15:42:04 -04:00