Change `siteUrl` to `homeUrl` on navigation site title (https://github.com/woocommerce/woocommerce-admin/pull/6240)
* Get home url * Change siteUrl to homeUrl
This commit is contained in:
parent
8c9235096c
commit
d61cb9faf3
|
@ -19,7 +19,7 @@ import { addHistoryListener } from '../../utils';
|
|||
|
||||
const Header = () => {
|
||||
const siteTitle = getSetting( 'siteTitle', '' );
|
||||
const siteUrl = getSetting( 'siteUrl', '' );
|
||||
const homeUrl = getSetting( 'homeUrl', '' );
|
||||
const isScrolled = useIsScrolled();
|
||||
const [ isFolded, setIsFolded ] = useState(
|
||||
document.body.classList.contains( false )
|
||||
|
@ -117,7 +117,7 @@ const Header = () => {
|
|||
{ buttonIcon }
|
||||
</Button>
|
||||
<Button
|
||||
href={ siteUrl }
|
||||
href={ homeUrl }
|
||||
className="woocommerce-navigation-header__site-title"
|
||||
as="span"
|
||||
>
|
||||
|
|
|
@ -1102,6 +1102,7 @@ class Loader {
|
|||
$settings['wcVersion'] = WC_VERSION;
|
||||
$settings['siteUrl'] = site_url();
|
||||
$settings['shopUrl'] = get_permalink( wc_get_page_id( 'shop' ) );
|
||||
$settings['homeUrl'] = home_url();
|
||||
$settings['dateFormat'] = get_option( 'date_format' );
|
||||
$settings['plugins'] = array(
|
||||
'installedPlugins' => PluginsHelper::get_installed_plugin_slugs(),
|
||||
|
|
Loading…
Reference in New Issue