mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
Fixed site domain for FirstPromoter
no issue Removes http(s) and trailing slashes from FirstPromoter site URL
This commit is contained in:
parent
569c94272c
commit
a09ff2ca5c
@ -181,7 +181,7 @@ export const getSupportAddress = ({site}) => {
|
||||
|
||||
export const getSiteDomain = ({site}) => {
|
||||
try {
|
||||
return (new URL(site.url)).origin;
|
||||
return ((new URL(site.url)).origin).replace(/^http(s?):\/\//, '').replace(/\/$/, '');
|
||||
} catch (e) {
|
||||
return site.url.replace(/^http(s?):\/\//, '').replace(/\/$/, '');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user