ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
34 stars 2 forks source link

Editor.js image uploader in Nested IIS doesn't prepend nested directory to API calls #3449

Closed johnwhirsch closed 1 month ago

johnwhirsch commented 1 month ago

Version

4.3.1

Severity

Low

Environment

Nested IIS

Steps to Reproduce

It looks like the Editor.js feature is hard coded to connect to an API endpoint that doesn't prepend the directories with the nested IIS directory name(s). Example Nested Site URL: https://hostname.domain[.]com**/$NestedAppDirectory**/

Expected behavior

Editor.js should post to: https://hostname.domain[.]com/$NestedAppDirectory/api/internal/component/editor/image/$PublicFolderName

Actual behavior

Editor.js posts to: https://hostname.domain[.]com/api/internal/component/editor/image/$PublicFolderName

This results in a 404 error being returned.

Additional Environment data

No response

Screenshots/Animations

No response