Change hashtags and mentions in bios to open in-app in web UI (#24643)
This commit is contained in:
parent
e9a79d46cd
commit
8099ba04be
6 changed files with 82 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue