-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.xhtml file missing text/html
mimetype, not loaded by HtmlArticleGalley plugin
#10664
Comments
The following PR adds an exception for XHTML files to apply the PR: Tests: |
Looks good, thanks, @NateWr -- can you forward-port to |
Thanks @asmecher, I've added PRs for all branches now. |
All merged, thanks! (I'll take care of the submodules separately.) |
Describe the bug
When a file with a
.xhtml
is uploaded, it is assigned the mimetypetext/xml
. As a result, it is not loaded by theHtmlArticleGalleyPlugin
viewer.To Reproduce
Steps to reproduce the behavior:
.xhtml
galley to a submission (example below)What application are you using?
stable-3_3_0
Additional information
This is addressed in #5063, but it only applies to files named with a
.html
extension. When I added an exception toPKPString::getAmbiguousExtensionsMap()
forxhtml
, the mimetypetext/html
was assigned and the galley was displayed correctly.Example XHTML File
GitHub won't let me upload it, so copy and save this as
.xhtml
.The text was updated successfully, but these errors were encountered: