gridsome / gridsome/gridsome

Gridsome an vue cool lightbox image url

Open
#1,657 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.5k
Forks
466
PR merge metrics
No merged PRs in 30d

Description

## Description
what is the correct url to render the image for the cool lightbox. It only works with absolute live urls

`components: {
CoolLightBox,
},
data() {
return {
items: [
{
title: 'a beautiful mountain view',
description: "",
src: '~@/images/products/schlossberg/berg-1.jpg',
},
{
title: 'a beautiful mountain view',
description: "",
src: '~@/images/products/schlossberg/berg-2.jpg',
},
{
title: 'a beautiful mountain view',
description: "",
src: '~@/images/products/schlossberg/berg-3.jpg',
},
{
title: 'a beautiful mountain view',
description: "",
src: '~@/images/products/schlossberg/berg-5.jpg',
},
],
index: null
}
},`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking how CoolLightBox resolves the `src` values in the provided `items` configuration, then compare that behavior with Gridsome's local image asset handling. There are no repository files or tests identified in the issue; done would mean establishing the correct local URL format or documenting that only absolute URLs are supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.