summaryrefslogtreecommitdiffstats
path: root/webapp/components/youtube_video.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-24 12:45:12 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-24 12:45:12 -0400
commitc64b12e27a4218f27bfdfd935fd64ea43f0e6e26 (patch)
tree625baa2a878d1ad9992085649a998fd5f9088094 /webapp/components/youtube_video.jsx
parent998ce12133358eab587702e258edefbd437f86ba (diff)
parentd6a6668a39db2f78d59919686c5d7b901888da36 (diff)
downloadchat-c64b12e27a4218f27bfdfd935fd64ea43f0e6e26.tar.gz
chat-c64b12e27a4218f27bfdfd935fd64ea43f0e6e26.tar.bz2
chat-c64b12e27a4218f27bfdfd935fd64ea43f0e6e26.zip
Merge pull request #2529 from mattermost/plt-2383
PLT-2383 Fixed system console login page flash.
Diffstat (limited to 'webapp/components/youtube_video.jsx')
-rw-r--r--webapp/components/youtube_video.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/youtube_video.jsx b/webapp/components/youtube_video.jsx
index 2bd9a6702..6083fd8a1 100644
--- a/webapp/components/youtube_video.jsx
+++ b/webapp/components/youtube_video.jsx
@@ -7,6 +7,7 @@ import ChannelStore from 'stores/channel_store.jsx';
const ytRegex = /(?:http|https):\/\/(?:www\.)?(?:(?:youtube\.com\/(?:(?:v\/)|(\/u\/\w\/)|(?:(?:watch|embed\/watch)(?:\/|.*v=))|(?:embed\/)|(?:user\/[^\/]+\/u\/[0-9]\/)))|(?:youtu\.be\/))([^#\&\?]*)/;
import React from 'react';
+import {Link} from 'react-router';
export default class YoutubeVideo extends React.Component {
constructor(props) {
@@ -156,7 +157,7 @@ export default class YoutubeVideo extends React.Component {
<div>
<h4>
<span className='video-type'>{header}</span>
- <span className='video-title'><a href={this.props.link}>{this.state.title}</a></span>
+ <span className='video-title'><Link to={this.props.link}>{this.state.title}</Link></span>
</h4>
<div
className='video-div embed-responsive-item'