       email: @state.email
       instructor: @state.instructor == 'true'
     .then () =>
-      browserHistory.push('/onboarding/permissions?return_to=' + getReturnToParam())
+      browserHistory.push('/onboarding/permissions?return_to=' + decodeURIComponent(getReturnToParam()))
     .catch (err) =>
       NotificationActions.addNotification
         message: I18n.t('error_500.explanation')

        <div className="intro permissions">
          <h1>Permissions</h1>
          <p>
            Once you've signed in, this website will make automatic edits using your Wikipedia account, reflecting actions you take here. Your account will be used to update wiki pages when:
          </p>
          <ul>
            <li>you submit a Wikipedia classroom assignment or make edits to your course page</li>

  render: ->
    return (
      <div className="intro">
        <h1>You´re all set. Thank you.</h1>
        <h2>Loading...</h2>
      </div>
    )
