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
This commit changes the default resource routing behaviour:
- It used to search for a file in the root directory (on a domain level)
- After this change, it will search for a file relatively to the current
url segment
Besides that, we add a small configuration to let developers change the
default behaviour when needed.
___
usage examples:
```kotlin
// 1
configureWebResources {
setResourceFactory { path -> urlResource("/myApp1/resources/$path") }
}
// 2
configureWebResources {
setResourcelFactory { path -> urlResource("https://mycdn.com/myApp1/res/$path") }
}
```
___
This will fix#3413 (currently it bothers our users)
This commit changes the default resource routing behaviour:
- It used to search for a file in the root directory (on a domain level)
- After this change, it will search for a file relatively to the current
url segment
Besides that, we add a small configuration to let developers change the
default behaviour when needed.
___
usage examples:
```kotlin
// 1
configureWebResources {
setResourceFactory { path -> urlResource("/myApp1/resources/$path") }
}
// 2
configureWebResources {
setResourcelFactory { path -> urlResource("https://mycdn.com/myApp1/res/$path") }
}
```
___
This will fix#3413 (currently it bothers our users)
(cherry picked from commit 7380229)
We need to add the ability to use a relative path to resources in the resource library in the JS sourceset.
The problem might be with this line of code:
compose-multiplatform/components/resources/library/src/jsMain/kotlin/org/jetbrains/compose/resources/Resource.js.kt
Line 29 in 1346fee
Related slack discussion: https://kotlinlang.slack.com/archives/C01F2HV7868/p1689461585746039
The text was updated successfully, but these errors were encountered: