Forum Image now showing correctly · Issue #1573 · YAFNET/YAFNET · GitHub
Skip to content

Forum Image now showing correctly #1573

Description

@dcansyn

Describe the bug
Category Image now showing correctly

To Reproduce
Steps to reproduce the behavior:

  1. Select any category image.
  2. Go to listing
  3. See error

Expected behavior
Category image showing working correctly

System (please complete the following information):

  • YAF Version: YAF v4.0.2

Additional context

YAF.Web.HtmlHelpers.CategoryListHelpers:94

I'm not sure correctly but when I select category image its will be selected directly path like this: /images/categories/image.gif

But on the listing page image path changed again line this:
$"/{BoardContext.Current.Get().Forums}/{item.ImageURL}");
output: /images/forums//images/categories/image.gif

As I check on my side code should be like below:
forumImage.MergeAttribute("src", item.ImageURL);

Metadata

Metadata

Assignees

Labels

BugIssues

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions