Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monaco editor breaks when Orchard Core is deployed to a subdirectory #11434

Closed
TaylorSpindle opened this issue Mar 25, 2022 · 4 comments
Closed

Comments

@TaylorSpindle
Copy link

TaylorSpindle commented Mar 25, 2022

Describe the bug

When an Orchard Core instance is deployed with a subdirectory via IIS Monaco Editor is broken. This is part of the loader not honoring the subdirectory. Please see below example where TaxPayer is the subdirectory and all other scripts load correctly but not Monaco:

To Reproduce

Steps to reproduce the behavior:

  1. Deploy Orchard Core test website to IIS to a subdirectory
  2. Open Admin Screen
  3. Go to content type and set HTML Editor as Monaco editor
  4. attempt to edit or add content that uses the Monaco editor

Expected behavior

The expected behavior is that the Monaco editor should honor the subdirectory that it is deployed to not strip them out.

Screenshots

image
image

@jptissot
Copy link
Member

is your tenant / site configured with the subdirectory as a UrlPrefix ?

@TaylorSpindle
Copy link
Author

Yes, that is correct. It is configured via IIS with a URL Prefix. I tried setting the Base Url in Configuration -> Settings ->General. This did not affect the error. Thank you for your help.

@jtkech
Copy link
Member

jtkech commented Mar 25, 2022

The tenant prefix was already taken into account but not a possible virtual folder that would not be part of the tenant prefix but part of the pathBase of a given request, It has been fixed by #11370.

But maybe not yet available from nuget, maybe only from the cloudsmith feed.

@sebastienros
Copy link
Member

Closing as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants