mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Add redirect for legacy project url [SCI-12425]
This commit is contained in:
parent
b96c265ec1
commit
b51d3b9361
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue