From a27b51af53dd800ed54171f158559fbfcdd23483 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Thu, 5 Oct 2023 18:34:46 +0200
Subject: [PATCH] Fix #1301

---
 .../admin/university/people/administrators/static.html.erb      | 2 +-
 app/views/admin/university/people/authors/static.html.erb       | 2 +-
 app/views/admin/university/people/researchers/static.html.erb   | 2 +-
 app/views/admin/university/people/teachers/static.html.erb      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/views/admin/university/people/administrators/static.html.erb b/app/views/admin/university/people/administrators/static.html.erb
index 9ec455562..43ab4f75e 100644
--- a/app/views/admin/university/people/administrators/static.html.erb
+++ b/app/views/admin/university/people/administrators/static.html.erb
@@ -7,7 +7,7 @@ breadcrumbs:
     path: "<%= page.path %>"
 <% end %>
   - title: "<%= @about.to_s %>"
-    path: "<%= @about.person.path %>"
+    path: "<%= @about.person.current_permalink_in_website(@website)&.path %>"
   - title: "Responsabilités"
 <%= render 'admin/application/static/permalink' %>
 <%= render 'admin/application/static/design', full_width: true, toc_offcanvas: true %>
diff --git a/app/views/admin/university/people/authors/static.html.erb b/app/views/admin/university/people/authors/static.html.erb
index 910ed58e9..810120269 100644
--- a/app/views/admin/university/people/authors/static.html.erb
+++ b/app/views/admin/university/people/authors/static.html.erb
@@ -7,7 +7,7 @@ breadcrumbs:
     path: "<%= page.path %>"
 <% end %>
   - title: "<%= @about.to_s %>"
-    path: "<%= @about.person.path %>"
+    path: "<%= @about.person.current_permalink_in_website(@website)&.path %>"
   - title: "Actualités"
 <%= render 'admin/application/static/permalink' %>
 <%= render 'admin/application/static/design', full_width: true, toc_offcanvas: true %>
diff --git a/app/views/admin/university/people/researchers/static.html.erb b/app/views/admin/university/people/researchers/static.html.erb
index 2de9fa9e1..6c2deb3b3 100644
--- a/app/views/admin/university/people/researchers/static.html.erb
+++ b/app/views/admin/university/people/researchers/static.html.erb
@@ -7,7 +7,7 @@ breadcrumbs:
     path: "<%= page.path %>"
 <% end %>
   - title: "<%= @about.to_s %>"
-    path: "<%= @about.person.path %>"
+    path: "<%= @about.person.current_permalink_in_website(@website)&.path %>"
   - title: "Publications"
 <%= render 'admin/application/static/permalink' %>
 <%= render 'admin/application/static/design', full_width: true, toc_offcanvas: true %>
diff --git a/app/views/admin/university/people/teachers/static.html.erb b/app/views/admin/university/people/teachers/static.html.erb
index 9d4ba4b2d..024b5c7db 100644
--- a/app/views/admin/university/people/teachers/static.html.erb
+++ b/app/views/admin/university/people/teachers/static.html.erb
@@ -7,7 +7,7 @@ breadcrumbs:
     path: "<%= page.path %>"
 <% end %>
   - title: "<%= @about.to_s %>"
-    path: "<%= @about.person.path %>"
+    path: "<%= @about.person.current_permalink_in_website(@website)&.path %>"
   - title: "Enseignements"
 <%= render 'admin/application/static/permalink' %>
 <%= render 'admin/application/static/design', full_width: true, toc_offcanvas: true %>
-- 
GitLab