0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

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() { handleSearchUrl() {
const [path] = window.location.hash.substr(1).split('?'); const [path] = window.location.hash.substr(1).split('?');
if (path === '/sodo-search') { if (path === '/search' || path === '/search/') {
this.setState({ this.setState({
showPopup: true showPopup: true
}); });