Updated hash path for opening search modal

refs https://github.com/TryGhost/Team/issues/1665

- updates hash path for opening search from `#/sodo-search` to `#/search`
This commit is contained in:
Rishabh 2022-07-06 15:04:22 +02:00
parent d3e74b8c01
commit fb8765db09

View File

@ -43,7 +43,7 @@ export default class App extends React.Component {
handleSearchUrl() {
const [path] = window.location.hash.substr(1).split('?');
if (path === '/sodo-search') {
if (path === '/search' || path === '/search/') {
this.setState({
showPopup: true
});