0
Fork 0
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:
Sag 2023-08-10 14:14:11 +02:00 committed by GitHub
parent 6a1906b14e
commit 02f4f11e7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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)
};
});

View file

@ -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)
}]);
});
}

View file

@ -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)
}]);
});
}

View file

@ -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)
}]);
});
}