mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Reverted Offer links to absolute URLs (#17675)
refs https://github.com/TryGhost/Product/issues/3687 - We're not sure that relative URLs for Offers will work in production, even though they seem to work locally. Reverting for now.
This commit is contained in:
parent
6a1906b14e
commit
02f4f11e7c
4 changed files with 4 additions and 4 deletions
|
@ -293,7 +293,7 @@ export default class KoenigLexicalEditor extends Component {
|
|||
const offersLinks = offers.toArray().map((offer) => {
|
||||
return {
|
||||
label: `Offer - ${offer.name}`,
|
||||
value: `${offer.code}`
|
||||
value: this.config.getSiteUrl(offer.code)
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ export default class KoenigCardButtonComponent extends Component {
|
|||
this.offers.forEach((offer) => {
|
||||
urls.push(...[{
|
||||
name: `Offer - ${offer.name}`,
|
||||
url: `${offer.code}`
|
||||
url: this.config.getSiteUrl(offer.code)
|
||||
}]);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ export default class KoenigCardEmailCtaComponent extends Component {
|
|||
this.offers.forEach((offer) => {
|
||||
urls.push(...[{
|
||||
name: `Offer - ${offer.name}`,
|
||||
url: `${offer.code}`
|
||||
url: this.config.getSiteUrl(offer.code)
|
||||
}]);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ export default class KoenigCardHeaderComponent extends Component {
|
|||
this.offers.forEach((offer) => {
|
||||
urls.push(...[{
|
||||
name: `Offer - ${offer.name}`,
|
||||
url: `${offer.code}`
|
||||
url: this.config.getSiteUrl(offer.code)
|
||||
}]);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue