diff --git a/ui/components/app/dropdowns/network-dropdown.js b/ui/components/app/dropdowns/network-dropdown.js index 7838a9864..13b58e0d8 100644 --- a/ui/components/app/dropdowns/network-dropdown.js +++ b/ui/components/app/dropdowns/network-dropdown.js @@ -324,7 +324,7 @@ class NetworkDropdown extends Component { onClick={(e) => { e.preventDefault(); hideNetworkDropdown(); - history.push(ADVANCED_ROUTE); + history.push(`${ADVANCED_ROUTE}#show-testnets`); }} > {t('here')} diff --git a/ui/pages/settings/advanced-tab/advanced-tab.component.js b/ui/pages/settings/advanced-tab/advanced-tab.component.js index 361c7d8c9..c24ddb868 100644 --- a/ui/pages/settings/advanced-tab/advanced-tab.component.js +++ b/ui/pages/settings/advanced-tab/advanced-tab.component.js @@ -61,6 +61,15 @@ export default class AdvancedTab extends PureComponent { showLedgerTransportWarning: false, }; + showTestNetworksRef = React.createRef(); + + componentDidMount() { + if (window.location.hash.match(/show-testnets/u)) { + this.showTestNetworksRef.current.scrollIntoView({ behavior: 'smooth' }); + this.showTestNetworksRef.current.focus(); + } + } + renderMobileSync() { const { t } = this.context; const { history } = this.props; @@ -234,6 +243,7 @@ export default class AdvancedTab extends PureComponent { return (