DMPbelgium / roadmap

5 stars 1 forks source link

"view all templates" button link changes unexpectedly #84

Open StCyr opened 9 months ago

StCyr commented 9 months ago

if you edit a template, and switch between tabs (e.g. from "phase 1" back to "template details"), you'll notice that the button "View all templates" suddenly links to edit page of the template, and not to the list of templates.

StCyr commented 9 months ago

changing:

<%= link_to _('View all templates'), referrer, class: 'btn btn-default pull-right' %>

to:

<%= link_to _('View all templates'), org_admin_templates_path, class: 'btn btn-default pull-right' %>

in app/views/org_admin/templates/container.html.erb solves the issue

Updating app/views/org_admin/phases/container.html.erb should also be needed.

@nicolasfranck could you confirm?

nicolasfranck commented 9 months ago

Will investigate this, because I think this is changed dynamically with javascript. Probably because data is loaded in the background via javascript, and they have to update all links accordingly.