Add title to pages with missing title in Web UI (#19322)
This commit is contained in:
committed by
GitHub
parent
e82467ca41
commit
a5112b51fd
@ -12,7 +12,6 @@ import Suggestions from './suggestions';
|
||||
import Search from 'mastodon/features/compose/containers/search_container';
|
||||
import SearchResults from './results';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { title } from 'mastodon/initial_state';
|
||||
|
||||
const messages = defineMessages({
|
||||
title: { id: 'explore.title', defaultMessage: 'Explore' },
|
||||
@ -84,7 +83,7 @@ class Explore extends React.PureComponent {
|
||||
</Switch>
|
||||
|
||||
<Helmet>
|
||||
<title>{intl.formatMessage(messages.title)} - {title}</title>
|
||||
<title>{intl.formatMessage(messages.title)}</title>
|
||||
</Helmet>
|
||||
</React.Fragment>
|
||||
)}
|
||||
|
@ -10,7 +10,6 @@ import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag';
|
||||
import { List as ImmutableList } from 'immutable';
|
||||
import LoadMore from 'mastodon/components/load_more';
|
||||
import LoadingIndicator from 'mastodon/components/loading_indicator';
|
||||
import { title } from 'mastodon/initial_state';
|
||||
import { Helmet } from 'react-helmet';
|
||||
|
||||
const messages = defineMessages({
|
||||
@ -118,7 +117,7 @@ class Results extends React.PureComponent {
|
||||
</div>
|
||||
|
||||
<Helmet>
|
||||
<title>{intl.formatMessage(messages.title, { q })} - {title}</title>
|
||||
<title>{intl.formatMessage(messages.title, { q })}</title>
|
||||
</Helmet>
|
||||
</React.Fragment>
|
||||
);
|
||||
|
Reference in New Issue
Block a user