Defect #32891

Bookmark link on project page

Added by Dmitry Makurin 2 months ago. Updated 24 days ago.

Status:ResolvedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Target version:4.1.1
Resolution: Affected version:


Currently bookmark url creating with default protocol. If rails server setup with secure protocol bookmarks link still creating with http.
Jquery raises error on that kind of links:

jquery-2.2.4-ui-1.11.0-ujs-5.2.3.js?1574665137:24 Mixed Content: The page at 'https://redmine/projects/1' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://redmine/projects/1/bookmark'. This request has been blocked; the content must be served over HTTPS.

Redmine provides an option to specify protocol in administration panel. It could be used to generate url:

--- app/helpers/projects_helper.rb    (revision 1e830ee09f28f68d9019590e72b3612950724253)
+++ app/helpers/projects_helper.rb    (revision 24843626abc3f32e8fe206689e8d3d728e610a50)
@@ -158,7 +158,7 @@
       method = "post" 
       text = l(:button_project_bookmark)
-    url = bookmark_project_url(project)
+    url = bookmark_project_url(project, :protocol => Setting.protocol)
     link_to text, url, remote: true, method: method, class: css

Associated revisions

Revision 19530
Added by Jean-Philippe Lang about 1 month ago

Don't use full path links with hostname


#1 Updated by Dmitry Makurin 2 months ago

I messed up with title a little bit. Bookmark link on project page.

#2 Updated by Marius BALTEANU about 1 month ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 4.1.1

r19530 should fix this issue.

#3 Updated by Marius BALTEANU about 1 month ago

  • Subject changed from Bookmark link in project jump box to Bookmark link on project page

#4 Updated by Go MAEDA 24 days ago

  • Category set to Projects

Also available in: Atom PDF