OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
add tab to the default url options
Behrokh Satarnejad35e594051e4b
diff --git a/app/controllers/custom_styles_controller.rb b/app/controllers/custom_styles_controller.rbindex 66a4ad88af3..1158109c376 100644--- a/app/controllers/custom_styles_controller.rb+++ b/app/controllers/custom_styles_controller.rb@@ -44,10 +44,16 @@ class CustomStylesController < ApplicationControlleronly: UNGUARDED_ACTIONSno_authorization_required! *UNGUARDED_ACTIONS+ def default_url_options+ super.merge(tab: params[:tab])+ enddef show@custom_style = CustomStyle.current || CustomStyle.new@current_theme = @custom_style.theme@theme_options = options_for_theme_select+ if params[:tab].blank?+ redirect_to tab: 'interface'+ endenddef upsale; end@@ -55,7 +61,7 @@ class CustomStylesController < ApplicationControllerdef create@custom_style = CustomStyle.create(custom_style_params)if @custom_style.valid?- redirect_back(fallback_location: root_path)+ redirect_to custom_style_pathelseflash[:error] = @custom_style.errors.full_messagesrender action: :show@@ -65,7 +71,7 @@ class CustomStylesController < ApplicationControllerdef update@custom_style = get_or_create_custom_styleif @custom_style.update(custom_style_params)- redirect_back(fallback_location: root_path)+ redirect_to custom_style_pathelseflash[:error] = @custom_style.errors.full_messagesrender action: :show@@ -81,7 +87,7 @@ class CustomStylesController < ApplicationController@custom_style.export_cover_text_color = color@custom_style.saveend- redirect_back(fallback_location: root_path)+ redirect_to custom_style_pathenddef logo_download@@ -148,7 +154,7 @@ class CustomStylesController < ApplicationControllercall.on_failure doflash[:error] = call.messageend- redirect_back(fallback_location: root_path)+ redirect_to custom_style_pathendprivate@@ -197,8 +203,7 @@ class CustomStylesController < ApplicationControllerif @custom_style.nil?return render_404end-@custom_style.send(remove_method)- redirect_back(fallback_location: root_path)+ redirect_to custom_style_pathendend