@@ -818,7 +818,7 @@ function New-PodeWebImage
818
818
ObjectType = ' Image'
819
819
Parent = $ElementData
820
820
ID = $Id
821
- Source = $Source
821
+ Source = ( Add-PodeWebAppPath - Url $Source )
822
822
Title = $Title
823
823
Alignment = $Alignment.ToLowerInvariant ()
824
824
Height = (ConvertTo-PodeWebSize - Value $Height - Default ' auto' - Type ' px' )
@@ -1037,7 +1037,7 @@ function New-PodeWebLink
1037
1037
ObjectType = ' Link'
1038
1038
Parent = $ElementData
1039
1039
ID = $Id
1040
- Source = $Source
1040
+ Source = ( Add-PodeWebAppPath - Url $Source )
1041
1041
Value = $Value
1042
1042
NewTab = $NewTab.IsPresent
1043
1043
CssClasses = ($CssClass -join ' ' )
@@ -1501,7 +1501,7 @@ function New-PodeWebButton
1501
1501
ID = $Id
1502
1502
DataValue = $DataValue
1503
1503
Icon = $Icon
1504
- Url = $Url
1504
+ Url = ( Add-PodeWebAppPath - Url $Url )
1505
1505
IsDynamic = ($null -ne $ScriptBlock )
1506
1506
IconOnly = $IconOnly.IsPresent
1507
1507
Colour = $Colour
@@ -1787,7 +1787,7 @@ function New-PodeWebComment
1787
1787
ObjectType = ' Comment'
1788
1788
Parent = $ElementData
1789
1789
ID = $Id
1790
- Icon = $Icon
1790
+ Icon = ( Add-PodeWebAppPath - Url $Icon )
1791
1791
Username = $Username
1792
1792
Message = $Message
1793
1793
TimeStamp = $TimeStamp
@@ -2936,7 +2936,7 @@ function New-PodeWebFileStream
2936
2936
Name = $Name
2937
2937
ID = $Id
2938
2938
Height = $Height
2939
- Url = $Url
2939
+ Url = ( Add-PodeWebAppPath - Url $Url )
2940
2940
Interval = ($Interval * 1000 )
2941
2941
Icon = $Icon
2942
2942
CssClasses = ($CssClass -join ' ' )
@@ -2986,7 +2986,7 @@ function New-PodeWebIFrame
2986
2986
Parent = $ElementData
2987
2987
Name = $Name
2988
2988
ID = (Get-PodeWebElementId - Tag iFrame - Id $Id - Name $Name )
2989
- Url = $Url
2989
+ Url = ( Add-PodeWebAppPath - Url $Url )
2990
2990
Title = $Title
2991
2991
NoEvents = $true
2992
2992
CssClasses = ($CssClass -join ' ' )
@@ -3102,7 +3102,7 @@ function New-PodeWebAudioSource
3102
3102
return @ {
3103
3103
ComponentType = ' Element'
3104
3104
ObjectType = ' AudioSource'
3105
- Url = $Url
3105
+ Url = ( Add-PodeWebAppPath - Url $Url )
3106
3106
Type = $type
3107
3107
NoEvents = $true
3108
3108
}
@@ -3230,7 +3230,7 @@ function New-PodeWebVideoSource
3230
3230
return @ {
3231
3231
ComponentType = ' Element'
3232
3232
ObjectType = ' VideoSource'
3233
- Url = $Url
3233
+ Url = ( Add-PodeWebAppPath - Url $Url )
3234
3234
Type = $type
3235
3235
NoEvents = $true
3236
3236
}
@@ -3272,7 +3272,7 @@ function New-PodeWebMediaTrack
3272
3272
return @ {
3273
3273
ComponentType = ' Element'
3274
3274
ObjectType = ' MediaTrack'
3275
- Url = $Url
3275
+ Url = ( Add-PodeWebAppPath - Url $Url )
3276
3276
Language = $Language
3277
3277
Title = $Title
3278
3278
Type = $Type.ToLowerInvariant ()
0 commit comments