From b62e29ba9cd6183551266da05b9b602a4415d738 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Thu, 24 Mar 2016 11:05:13 -0400
Subject: Moving all links and redirects to react-router

---
 webapp/components/youtube_video.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'webapp/components/youtube_video.jsx')

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'
-- 
cgit v1.2.3-1-g7c22

