ogom / redmine_sidekiq

Sidekiq plugin for Redmine
21 stars 29 forks source link

Top Menu Link #8

Open williamschey opened 9 years ago

williamschey commented 9 years ago

Hi Ogomori,

Nice plugin. Could you modify the init.rb so that the top menu link so that it includes a '/' as it is broken from inside a project and the admin menu? E.g.

menu :top_menu, :sidekiq, '/sidekiq', :if => Proc.new {User.current.admin}

Cheers, Will

ogom commented 9 years ago

'/' have been fixed in the request. https://github.com/ogom/redmine_sidekiq/commit/9f5a90fef8518d00bc98e0ab1649401546448a22

Set top menu of the path to configuration file?

williamschey commented 9 years ago

Thanks for the feedback, when I look at the file in the master branch it still shows it without the slash. https://github.com/ogom/redmine_sidekiq/blob/master/init.rb Any ideas?

williamschey commented 9 years ago

Oh, I get it, the other person was have the reverse problem. My issue is... If you are in admin and click the SideKiq button it takes you to http://redminehost/admin/sidekiq instead of http://redminehost/sidekiq.

But the other person has redmine installed in a sub-directory e.g. http://redminehost/subdir/. So if you go to /sidekiq then it takes you to http://redminehost/sidekiq not http://redminehost/subdir/sidekiq.

I'll have a think and have another go.

keineahnung2345 commented 3 years ago

Hi, I install redmine under a sub-uri, and I have a problem that top menu takes me to http://redminehost/sidekiq not http://redminehost/subdir/sidekiq. Besides removing '/'(which causes another problem), is there another way to solve this?