You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering an /sitecore/templates/Feature/JSS Experience Accelerator/Media/Image with packages\create-sitecore-jss\src\templates\nextjs-sxa\src\components\Image.tsx, the is always wrapped in an , even when the TargetUrl field (display name URL) is not configured.
This gives users the assumption the image is clickable, which is not the case.
To Reproduce
Render an /sitecore/templates/Feature/JSS Experience Accelerator/Media/Image with packages\create-sitecore-jss\src\templates\nextjs-sxa\src\components\Image.tsx with TargetURL field left empty.
Expected Behavior
When TargetUrl is empty, the tag should not be wrapped inside an tag.
Possible Fix
No response
Provide environment information
Sitecore Version: /
JSS Version: dev
Browser Name and version: Edge
Operating System and version (desktop or mobile): /
Link to your project (if available): /
The text was updated successfully, but these errors were encountered:
…argetUrl is not configured (#1594)
* Don't wrap image in link when not configured
* Update CHANGELOG #1593
---------
Co-authored-by: De Vos, Stijn <[email protected]>
Co-authored-by: Illia Kovalenko <[email protected]>
Describe the Bug
When rendering an /sitecore/templates/Feature/JSS Experience Accelerator/Media/Image with packages\create-sitecore-jss\src\templates\nextjs-sxa\src\components\Image.tsx, the is always wrapped in an , even when the TargetUrl field (display name URL) is not configured.
This gives users the assumption the image is clickable, which is not the case.
To Reproduce
Render an /sitecore/templates/Feature/JSS Experience Accelerator/Media/Image with packages\create-sitecore-jss\src\templates\nextjs-sxa\src\components\Image.tsx with TargetURL field left empty.
Expected Behavior
When TargetUrl is empty, the tag should not be wrapped inside an tag.
Possible Fix
No response
Provide environment information
The text was updated successfully, but these errors were encountered: