Problem:
If author has not uploaded his profile pic then the default image i.e `img/anonymous.png` is shown to user. But on the front page/Home page, image is not loading.

Solution: Image is render from the Javascript through location.hostname + path_to_image which is missing 'http://' at the start so image is not loading.
Add 'http://' to the start will fix the issue.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ankitjain28may created an issue. See original summary.

jayasree.e’s picture

Status: Active » Needs review
StatusFileSize
new1.47 KB

Submitted the patch to fix the issue.Please review

ilgnerfagundes’s picture

Status: Needs review » Needs work

@jayasree.e
This new approach works only if the theme is at the root of '/ themes', if it is in another directory like '/ themes / contrib' it doesn't work. The url for the image should take the current directory of the theme.

ilgnerfagundes’s picture

zvonimirr’s picture

Status: Needs work » Needs review
StatusFileSize
new2.03 KB

Here is my take on it

baluertl’s picture

Title: Default Image of author is not loading. » Default Image of author is not loading
anjali rathod’s picture

Status: Needs review » Needs work

The patch applied successfully but after that the page leads to endless loading.

reenaraghavan’s picture

Assigned: Unassigned » reenaraghavan
reenaraghavan’s picture

Assigned: reenaraghavan » Unassigned

calcifer_3119 made their first commit to this issue’s fork.

calcifer_3119’s picture

StatusFileSize
new1.84 KB

Here's the patch

calcifer_3119’s picture

Status: Needs work » Needs review