Fix bug for mobile app routes
This commit is contained in:
1 parent
c33a723a2a
commit
87a89f81ce
9 files changed
+25
-25
No files matched your search
@@ -130,7 +130,7 @@ class ApplicationController < ActionController::Base
|
||||
respond_to do |format|
|
||||
format.html { render :text => parse_page_content(@item), :layout => 'page_layout' }
|
||||
format.rss { render_main_rss }
|
||||
format.mobile { redirect_to mobile_path }
|
||||
format.mobile { redirect_to mobile_path(:app => params[:app]) }
|
||||
end
|
||||
else
|
||||
render :text => '404 Not Found'
|
||||
|
||||
@@ -54,7 +54,7 @@ class MobileController < ApplicationController
|
||||
protected
|
||||
|
||||
def no_footer_for_app
|
||||
@no_footer = true if request.path.starts_with?("/app")
|
||||
@no_footer = true if request.path =~ /app/
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user