diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index c1593e320..3f6e3db58 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -555,7 +555,6 @@ class ProjectsController < ApplicationController # Show @project def show - @project_type = params[:project_type] # try to redirect to the requested menu item diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ef18793ab..1112cebc6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -635,6 +635,11 @@ module ApplicationHelper end def html_title(*args) + #點擊項目版本庫 多觸發一次 字符串為"/" + #暫時解決方法 直接判斷 + if(args == ["/"]) + args = [] + end first_page = FirstPage.where("page_type = 'project'").first if args.empty? title = @html_title || []