Tokens Does not work when used with Marker icon path in views formatter for common map.

Whenever custom field value is used as token for marker icon path, there is some extra space gets added after applying viewsTokenReplace, This results in invalid path url for the icon, and the icon does not get displayed.

The screenshot is attached.

Screenshot

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rakshith.thotada created an issue. See original summary.

rakshith.thotada’s picture

Issue summary: View changes
rakshith.thotada’s picture

The proposed fix:
Trim the whitespace both at beginning and end before passing it to file_create_url function.

The patch is uploaded

rakshith.thotada’s picture

Status: Needs work » Needs review
ChristianAdamski’s picture

Might already be fixed by #2947648: Default markers are broken after [#2941285], but this is good as well.

ChristianAdamski’s picture

Status: Needs review » Fixed
rakshith.thotada’s picture

@ChristianAdamski Thanks so much for verifying and committing this patch for token related fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.