Skip to content

Commit

Permalink
Merge branch 'hotfix/0.107.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
icereval committed Apr 11, 2017
2 parents 3575d59 + 723206e commit 3594e91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/routes/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const {
OSF: {renderUrl}
} = config;

const exportUrl = renderUrl.replace(/render$/, 'export');

// Error handling for API
const handlers = new Map([
// format: ['Message detail', 'page']
Expand Down Expand Up @@ -203,7 +205,7 @@ export default Ember.Route.extend(Analytics, ResetScrollMixin, SetupSubmitContro

highwirePress.push([
'citation_pdf_url',
`${renderUrl}?url=${encodeURIComponent(`${primaryFile.get('links').download}?direct&mode=render`)}`
`${exportUrl}?format=pdf&url=${encodeURIComponent(`${primaryFile.get('links').download}?direct`)}`
]);

const openGraphTags = openGraph
Expand Down
2 changes: 1 addition & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ module.exports = function(defaults) {
},
// bable options included to fix issue with testing discover controller
// http://stackoverflow.com/questions/32231773/ember-tests-passing-in-chrome-not-in-phantomjs
babel: {
'ember-cli-babel': {
optional: ['es6.spec.symbols'],
includePolyfill: true
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "preprint-service",
"version": "0.107.1",
"version": "0.107.2",
"description": "Center for Open Science Preprint Service",
"private": true,
"directories": {
Expand Down

0 comments on commit 3594e91

Please sign in to comment.