Skip to content

Commit

Permalink
Merge pull request #868 from VirtualFlyBrain/alpha-sync-8302
Browse files Browse the repository at this point in the history
sync: alpha  with alpha-sync-8302
  • Loading branch information
Robbie1977 authored Jan 1, 2021
2 parents af94877 + 0849f06 commit bdb2804
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM metacell/java-virgo-maven:development

MAINTAINER Robert Court "rcourt@ed.ac.uk"
LABEL maintainer="rcourt@ed.ac.uk"

ARG targetBranch=development
ARG originBranch=development
Expand Down
5 changes: 5 additions & 0 deletions components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,11 @@ class VFBMain extends React.Component {
link.setAttribute('rel', 'amphtml');
link.setAttribute('href', 'https://virtualflybrain.org/data/VFB/json/' + this.idFromURL + '.html');
document.head.appendChild(link);
var conlink = !!document.querySelector("link[rel='canonical']");
conlink = conlink ? document.querySelector("link[rel='canonical']") : document.createElement('link');
conlink.setAttribute('rel', 'canonical');
conlink.setAttribute('href', 'https://virtualflybrain.org/reports/' + this.idFromURL);
document.head.appendChild(conlink);
} catch (err) {
console.error(err);
}
Expand Down
Loading

0 comments on commit bdb2804

Please sign in to comment.