noosfero | Change wellcome user link to the homepage instead profile page (!1255)

Rodrigo Souto gitlab at mg.gitlab.com
Mon Jun 26 10:25:12 BRT 2017


Hey @mendesiasmin, what you did it's not wrong, but there is an easier way to achieve it. Instead of using `@environment.top_url + "/#{current_user.login}"` you can just use `user.url`. This method will point to this same path. Note that it's `user` and not `current_user` in this case because `user` is the `Person` model of the logged user and `current_user` is the `User` model.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1255#note_33469034
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170626/bd0a66df/attachment.html>


More information about the Noosfero-dev mailing list