noosfero | Render index page when current theme is an angular theme (!1220)

Evandro Jr gitlab at mg.gitlab.com
Thu Jun 1 09:26:14 BRT 2017


Evandro Jr started a new discussion on app/controllers/application_controller.rb:

>      end
>    end
>  
> +  def verify_angular_theme
> +    render 'home/index' if Theme.angular_theme?(current_theme) && !request.path.starts_with?('/api/')

IMHO I cannot think of a better solution. This avoids boring tasks like like configuring webserver for angular routes. 

Maybe there is some better approach, however I am not aware of.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1220#note_31275587
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/20170601/6d24e04f/attachment.html>


More information about the Noosfero-dev mailing list