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
When using a child portal alias (e.g. example.com/site2, where example.com is the root of the DNN installation), the SQL and Config Manager requests for the Monaco editor script fail with a 404 because the alias is included in the request URL.
Steps to reproduce
Create a DNN installation
Add a child alias to the site
Open the SQL page in the Persona Bar
Current behavior
The area where the editor should be is blank. There is a 404 and a JS error logged in the browser console.
Expected behavior
The editor loads.
Screenshots
Error information
SqlConsole.js?cdv=4789:748 GET https://….com/en-us/Resources/Shared/components/MonacoEditor/loader.js net::ERR_ABORTED 404
require.js?cdv=4789:1961 GET https://….com/en-us/Resources/Shared/components/MonacoEditor/editor/editor.main.js?cdv=4789 net::ERR_ABORTED 404
main.js?cdv=4789:53 Uncaught Error: Script error for "vs/editor/editor.main" http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js?cdv=4789:168:17)
at HTMLScriptElement.onScriptError (require.js?cdv=4789:1738:36)
Additional context
This issue was introduced in #5066, which resolved a similar issue with 404s when the site is hosted in an IIS virtual directory. Instead of hardcoding / as the root, it changed the logic to use dnn.getVar('sf_siteRoot'). However, this is the root for Services Framework requests, which include the alias to determine the portal. This does not work for static requests. We may need to add an additional variable to indicate the installation root.
Affected version
10.00.00 alpha build
09.11.00 latest supported release
The text was updated successfully, but these errors were encountered:
Description of bug
When using a child portal alias (e.g.
example.com/site2
, whereexample.com
is the root of the DNN installation), the SQL and Config Manager requests for the Monaco editor script fail with a 404 because the alias is included in the request URL.Steps to reproduce
Current behavior
The area where the editor should be is blank. There is a 404 and a JS error logged in the browser console.
Expected behavior
The editor loads.
Screenshots
Error information
Additional context
This issue was introduced in #5066, which resolved a similar issue with 404s when the site is hosted in an IIS virtual directory. Instead of hardcoding
/
as the root, it changed the logic to usednn.getVar('sf_siteRoot')
. However, this is the root for Services Framework requests, which include the alias to determine the portal. This does not work for static requests. We may need to add an additional variable to indicate the installation root.Affected version
The text was updated successfully, but these errors were encountered: