aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2020-01-03 13:44:12 +0100
committerSonarTech <sonartech@sonarsource.com>2020-01-08 20:46:11 +0100
commit279deef3e8534bba914245ccf10610a459073640 (patch)
tree22cfcf63ecee905641dfd3bc76043c0cfb2843f1 /server/sonar-web/src/main/js/apps/quality-profiles
parent3365182508367bfcc080452d7cf932f9cfbf8c1b (diff)
downloadsonarqube-279deef3e8534bba914245ccf10610a459073640.tar.gz
sonarqube-279deef3e8534bba914245ccf10610a459073640.zip
SONAR-12429 Fix 404 when opening embedded documentation in new tab
Cherry-pick of SC-1304
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.tsx2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx
index 615604ed3c7..c0d7e479073 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx
@@ -18,7 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as React from 'react';
-import Helmet from 'react-helmet';
+import { Helmet } from 'react-helmet-async';
import { WithRouterProps } from 'react-router';
import ProfileHeader from '../details/ProfileHeader';
import { Profile } from '../types';
@@ -82,7 +82,7 @@ export default class ProfileContainer extends React.PureComponent<Props & WithRo
return (
<div id="quality-profile">
- <Helmet title={profile.name} />
+ <Helmet defer={false} title={profile.name} />
<ProfileHeader
organization={organization}
profile={profile}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.tsx
index 42683348643..e028d15bb4b 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.tsx
@@ -19,7 +19,7 @@
*/
import { shallow } from 'enzyme';
import * as React from 'react';
-import Helmet from 'react-helmet';
+import { Helmet } from 'react-helmet-async';
import { WithRouterProps } from 'react-router';
import { mockQualityProfile } from '../../../../helpers/testMocks';
import ProfileHeader from '../../details/ProfileHeader';