Closed (fixed)
Project:
Heartbeat
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 18:55 UTC
Updated:
5 May 2012 at 21:20 UTC
On a site where some users browse on https protocol and some on http, the default site activity feed of Heartbeat uses the protocols in links incorrectly. It seems that the links for user's activity have the protocol hardcoded in them based on how the user in question was surfing.
A correct behavior would be for Heartbeat not to save this protocol information and to let the protocol links be determined by the user's browser, as with other links in Drupal.
Example:
Comments
Comment #1
Stalski commentedThis is certainly true. I only should see again why I did this. There was a reason for the absolute urls.
Comment #2
Daedalon commentedApart from #698426: System URL being used. Not the Alias. where we've discussed formatting URL in runtime instead of saving the absolute, I can imagine some reasons for wanting to save the absolute URL but not with the protocol prefix. If there are reasons I'm interested to learn of them, but so far I can't think of an internal Drupal page being accessible only via http or https. Instead there's a Context SSL module that redirects to https if necessary (good for admin/*).
Comment #3
Stalski commentedThis should be fixed in dev now. All links (especially the ones rendered and stored from token replacement) are relative now.
I really hope there will be no bug introduced by this.
Comment #4
Daedalon commentedGreat! In WordPress, a common way is to call site_url() to format the URL, which gives the proper protocol prefix and takes the rest of the site's root URL from the site settings.
If something like this is not available with Drupal, another solution would be to use a system variable or constant to get the beginning of the target URL to link to.
Comment #5
Stalski commentedthe url and l function does the same thing and was already used. It's the arguments that matter.
so it should work but I need your answer from the review ;)
Comment #6
Daedalon commentedWorks like a charm. Thanks!
I removed the plugin before installing the dev version, so I encountered another problem I hadn't yet reported: the plugin default permissions are too strict. By default, administrators should have the permission checkbox checked for all parts of the plugin. A recommendation to visit the permissions should also be presented to the admins.
Comment #7
Stalski commentedOk, I am glad it works.
About that other question. I can only say that permissions always start strict, untill you give access through the UI. Core has an option to enable permissions of enabled modules by default.
If that's not what you meant, please open another issue.
Comment #8
Daedalon commentedI think that with the same sitewide settings with other plugins I've installed all the permissions have been given to admin initially. Only with Heartbeat I've encountered the situation of admin not seeing the output of the newly-installed and configured plugin.