Change hashtags and mentions in bios to open in-app in web UI (#24643)
This commit is contained in:
@@ -161,9 +161,9 @@ class Search extends React.PureComponent {
|
||||
|
||||
handleURLClick = () => {
|
||||
const { router } = this.context;
|
||||
const { onOpenURL } = this.props;
|
||||
const { value, onOpenURL } = this.props;
|
||||
|
||||
onOpenURL(router.history);
|
||||
onOpenURL(value, router.history);
|
||||
};
|
||||
|
||||
handleStatusSearch = () => {
|
||||
|
@@ -34,8 +34,8 @@ const mapDispatchToProps = dispatch => ({
|
||||
dispatch(showSearch());
|
||||
},
|
||||
|
||||
onOpenURL (routerHistory) {
|
||||
dispatch(openURL(routerHistory));
|
||||
onOpenURL (q, routerHistory) {
|
||||
dispatch(openURL(q, routerHistory));
|
||||
},
|
||||
|
||||
onClickSearchResult (q, type) {
|
||||
|
Reference in New Issue
Block a user