Support app deployment under a path prefix

Fixes #133
This commit is contained in:
Maxime Quandalle 2015-10-08 23:25:04 +02:00
parent c804813e5f
commit a78debc461
6 changed files with 12 additions and 8 deletions

View file

@ -55,7 +55,7 @@ BlazeComponent.extendComponent({
cardLink() {
const card = this.currentData().card();
return card && Blaze.toHTML(HTML.A({
href: card.absoluteUrl(),
href: FlowRouter.path(card.absoluteUrl()),
'class': 'action-card',
}, card.title));
},
@ -69,7 +69,7 @@ BlazeComponent.extendComponent({
attachmentLink() {
const attachment = this.currentData().attachment();
return attachment && Blaze.toHTML(HTML.A({
href: attachment.url({ download: true }),
href: FlowRouter.path(attachment.url({ download: true })),
target: '_blank',
}, attachment.name()));
},