canvas-lms/public
Ed Schiebel 642f6038cf Fix error in swizzling auto-preview link's href
when a link to a file has a preview (auto-inline or not), there's
code that edits its href to remove "download" from the path and
"wrap=1" from the query_string. There was a bug that if the href
included a verifier the result was something like
"/users/2/files/17&verifier=xxx", which is invalid. This tweaks
the href editing so the result looks like
"/users/2/files/17?verifier=xxx", which is valid and works.

closes LA-1170, LA-1083
flag=none

test plan:
  - as a teacher, create a discussion
  - as a student in the course, reply and upload 2 pdfs
  - in the first, use link options to set to auto preview
  - leave the 2nd alone
  - save
  - as the teacher
    > expect the 1st file to auto-preview
    > expect the 2nd to preview if you click the icon
    > expect to be able to click on eiher file w/o error
      (wlll either preview or download)
  - as different student in the course, view the discussion
    > expect the same results as the teacher

Change-Id: I4b03be74d9536ee645e335e7945e17cd7a7ef98b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/242791
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
2020-07-17 20:56:31 +00:00
..
file_removed Fix typo in public/file_removed/file_removed.pdf 2018-04-05 16:54:38 +00:00
fonts fix utf8 comments crashing prawn 2020-01-09 21:26:52 +00:00
images show MasteryConnect data on Assign index page 2020-07-02 20:23:11 +00:00
javascripts Fix error in swizzling auto-preview link's href 2020-07-17 20:56:31 +00:00
media_record Update krecord to support nginx-rtmp 2018-11-06 18:49:58 +00:00
partials Update the Course Settings page to be responsive 2020-03-18 18:57:57 +00:00
422.html
500.html replace all .button(s) with .btn 2012-11-14 13:29:30 -07:00
Canvas.png Add CSS to IE unsupported page 2019-09-11 16:55:10 +00:00
_crossdomain.xml
apple-touch-icon.png ThemeEditor: fix 404 to default preview images 2015-08-05 22:52:58 +00:00
dimdim_welcome.html
drawing.html
enable-javascript.html
equella_cancel.html
equella_success.html
favicon.ico provide high-res, color-coded favicons 2014-06-13 22:03:14 +00:00
ie-is-not-supported.html Add CSS to IE unsupported take 2 2019-09-11 19:21:58 +00:00
inst-fs-sw.js safari inst-fs service worker 2020-07-02 22:39:11 +00:00
loading_submission.html
robots.txt
simple_response.json