         else
           charUrlParsed = urlParse data.character.href
           [ foo, foo, characterId ] = charUrlParsed.path.split '/'
-          @setState {character: {id: characterId, name: ''}}
+          @setState {character: {id: characterId, name: '', url: data.character.href}}
           statsUrl = data.character.href + "statistics/year/2014/"
           jrequest data.character.href, (err, data, xhr) =>
             char = @state.character
             char.name = data.name
             @setState {character: char}
-          jrequest statsUrl, (err, data, xhr) =>
-            stats = new CharacterStats(data)
-            @setState {stats: stats, year: 2014, ssoState: 'loaded'}
+          @loadStatsYear(2014)
+
+  loadStatsYear: (year) ->
+    url = "#{@state.character.url}statistics/year/#{year}/"
+    jrequest url, (err, data, xhr) =>
+      stats = new CharacterStats(data)
+      @setState {stats: stats, year: year, ssoState: 'loaded'}
 
   loadSampleData: ->
     host = window.location.host


      facts = new CharacterFacts(@state.stats).getFacts()

      title = React.createElement(Title, {character: @state.character, year: @state.year})

      charInfoPanel = React.createElement(CharacterInfoPanel, {character: @state.character, facts: facts, stats: @state.stats})



Title = React.createClass(
  displayName: 'Title'
  switchYear: ->
    return if @props.year == 2014 then 2013 else 2014
  onClick: ->
    this.props.switchToYear(@switchYear())
  render: ->
    dom.h2 null,
      "#{@props.character.name}'s Year in Review, #{@props.year}"
      if not @props.hideSwitch then dom.small null, " ", dom.a({onClick: @onClick}, "View #{@switchYear()}")
)

CharacterInfoPanel = React.createClass(
  displayName: 'CharacterInfoPanel'
  render: ->
    avgSession = Math.round(@props.stats.characterMinutes / @props.stats.characterSessionsStarted)
    dom.div {className: 'row'},
      dom.div {className: 'col-md-4'},
        React.createElement(CharacterAvatar, {id: @props.character.id})
