Skip to content

Commit

Permalink
DEV: Fix template
Browse files Browse the repository at this point in the history
If there is only a top level route for the admin show
for the plugin, it will not be an `index` route, it will
just be the route name itself as the top level.
  • Loading branch information
martin-brennan committed Jul 2, 2024
1 parent ab734bb commit c380ee9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ export default {
path: "/plugins",

map() {
this.route("discourse-antivirus-stats", { path: "stats" });
this.route(
"discourse-antivirus-stats",
{ path: "stats" }
);
},
};
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module ::DiscourseAntivirus

require_relative "lib/discourse_antivirus/engine"

add_admin_route("antivirus.title", "antivirus", { use_new_show_route: true })
add_admin_route("antivirus.title", "discourse-antivirus", { use_new_show_route: true })

after_initialize do
register_reviewable_type ReviewableUpload
Expand Down

0 comments on commit c380ee9

Please sign in to comment.