How redirect on user page

Plugin Development
  • Suppose to be in my controller.js and I need to redirect user on the user page.

    ...
    var username=user//it's the username
    res.render('/user/'+username);

    but I obtain an error :

    Object #<IncomingMessage> has no method 'csrfToken'

    "/vagrant/nodebb/public/templates"

    Anyone can help me?


Suggested Topics


  • 0 Votes
    4 Posts
    1887 Views

  • 0 Votes
    1 Posts
    1130 Views

  • 0 Votes
    5 Posts
    2292 Views

  • 0 Votes
    4 Posts
    2450 Views

  • 0 Votes
    27 Posts
    9048 Views

| | | |