compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

[Compose resources]: Make url paths absolute for JS/Web

Open rsktash opened this issue 1 year ago • 1 comments

Please, make url paths absolute for JS!

NOT: composeResources/package.name/values/strings.commonMain.cvr BUT: /composeResources/package.name/values/strings.commonMain.cvr

When window url is dynamically changed via window.history.pushState(data, url, title)

https://domain.com -> https://domain.com/user/dashboard

resources cannot be found giving 404 error

rsktash avatar May 06 '24 14:05 rsktash

Here's a temporary workaround

telegram-cloud-photo-size-2-5341559966458306041-y

rsktash avatar May 15 '24 02:05 rsktash

To achieve it there is an API: image

terrakok avatar Jul 11 '24 09:07 terrakok

The current default was selected to support different compose apps on the same host and the API is exactly to configure that behaviour

terrakok avatar Jul 11 '24 10:07 terrakok

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 14:07 okushnikov