Add redirect for legacy project url [SCI-12425]

This commit is contained in:
Anton 2025-10-03 13:44:07 +02:00
parent b96c265ec1
commit b51d3b9361
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ class ProjectsController < ApplicationController
render json: @project, serializer: ProjectSerializer, user: current_user
end
format.html do
render 'experiments/index'
redirect_to experiments_path(project_id: @project.id)
end
end
end

View file

@ -78,7 +78,7 @@ class SmartAnnotationsController < ApplicationController
def redirect_path
case resource
when Project
project_path(resource)
experiments_path(project_id: resource.id)
when Experiment
my_modules_experiment_path(resource)
when MyModule

View file

@ -13,7 +13,7 @@ module BreadcrumbsHelper
else
parent = subject.team
end
url = project_path(subject)
url = experiments_path(project_id: subject.id)
when Experiment
parent = subject.project
url = my_modules_experiment_path(subject)