Skip to content

Commit

Permalink
fix: DAISY Knowledge Base URL has changed (online has auto-redirect, …
Browse files Browse the repository at this point in the history
…but not local)
  • Loading branch information
danielweck committed Apr 30, 2020
1 parent 07b47d6 commit 3bae539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/MetaDataEditorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import epubUtils from '@daisy/epub-utils';

import a11yMetadata from '@daisy/ace-core/lib/core/a11y-metadata';

// http://kb.daisy.org/publishing/docs/metadata/schema-org.html
// http://kb.daisy.org/publishing/docs/metadata/schema.org/index.html
// http://kb.daisy.org/publishing/docs/metadata/evaluation.html

const conformsToURLs = a11yMetadata.conformsToURLs;
Expand Down Expand Up @@ -191,7 +191,7 @@ class MetaDataEditorModal extends React.Component {
packageOpfXPathSelect = undefined;

onKBSchemaOrg = () => {
const url = `${KB_BASE}docs/metadata/schema-org.html`;
const url = `${KB_BASE}docs/metadata/schema.org/index.html`;
ipcRenderer.send('KB_URL', url);
// shell.openExternal(url);
}
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/ReportSections/Metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const styles = theme => ({

const KB_BASE = 'http://kb.daisy.org/publishing/';

// http://kb.daisy.org/publishing/docs/metadata/schema-org.html
// http://kb.daisy.org/publishing/docs/metadata/schema.org/index.html
// http://kb.daisy.org/publishing/docs/metadata/evaluation.html

const A11Y_META = a11yMetadata.A11Y_META;
Expand All @@ -80,7 +80,7 @@ class Metadata extends React.Component {
};

onKBSchemaOrg = () => {
const url = `${KB_BASE}docs/metadata/schema-org.html`;
const url = `${KB_BASE}docs/metadata/schema.org/index.html`;
ipcRenderer.send('KB_URL', url);
// shell.openExternal(url);
}
Expand Down

0 comments on commit 3bae539

Please sign in to comment.