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 setting to allow overriding the login path
Oliver Günther919d94983db8
diff --git a/app/views/admin/settings/authentication_settings/show.html.erb b/app/views/admin/settings/authentication_settings/show.html.erbindex 19feeecd90e..78e6914591b 100644--- a/app/views/admin/settings/authentication_settings/show.html.erb+++ b/app/views/admin/settings/authentication_settings/show.html.erb@@ -155,6 +155,19 @@ See COPYRIGHT and LICENSE files for more details.<fieldset class="form--fieldset"><legend class="form--fieldset-legend"><%= I18n.t("settings.other") %></legend><div class="form--field -wide-label"><%= setting_check_box :log_requesting_user %></div>++ <div class="form--field -wide-label">+ <%= setting_text_field :after_first_login_redirect_url, container_class: "-middle" %>+ <span class="form--field-instructions">+ <%= t(:setting_after_first_login_redirect_url_text_html) %>+ </span>+ </div>+ <div class="form--field -wide-label">+ <%= setting_text_field :after_login_default_redirect_url, container_class: "-middle" %>+ <span class="form--field-instructions">+ <%= t(:setting_after_login_default_redirect_url_text_html) %>+ </span>+ </div></fieldset></section><% unless OpenProject::Configuration.disable_password_login? %>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 61826319d7f..12e7bfc5a83 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -3599,6 +3599,16 @@ en:search_input_placeholder: "Search ..."+ setting_after_first_login_redirect_url: "First login redirect"+ setting_after_first_login_redirect_url_text_html: >+ Set a path to redirect users after their first login. If empty, redirects to the home page for the onboarding tour.+ <br/>+ Example: <code>/my/page</code>+ setting_after_login_default_redirect_url: "After login redirect"+ setting_after_login_default_redirect_url_text_html: >+ Set a default path to redirect users after login, if no back link was provided. Redirects to home page if not set.+ <br/>+ Example: <code>/my/page</code>setting_apiv3_cors_title: "Cross-Origin Resource Sharing (CORS)"setting_apiv3_cors_enabled: "Enable CORS"setting_apiv3_cors_origins: "API V3 Cross-Origin Resource Sharing (CORS) allowed origins"