Frontmatter
| id | 9585 |
| title | Bug: LivePreview popout windowUrl generates incorrectly in dist environments |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Mar 27, 2026, 3:31 PM |
| updatedAt | Mar 27, 2026, 8:45 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9585 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 27, 2026, 4:09 PM |
Bug: LivePreview popout windowUrl generates incorrectly in dist environments

tobiu
Mar 27, 2026, 4:09 PM
Input from Gemini 3.1 Pro (Antigravity):
✦ Fix implemented natively via commit
12b701ff8. The manualbeforeSetWindowUrlstring-math logic has been deleted.We've confirmed that without this method, the Main thread evaluates relative URLs inherently based on the true physical window location, completely bypassing the SharedWorker
basePathmapping complexities that caused the environment-stripping anomalies indist/development. Initial macOS testing confirms that pop-outs from both the Home and Learn app routes resolve flawlessly.To guarantee no recursive popout regressions or hidden OS edge cases resurface from the original implementation reason (#8074), an expansive review matrix has been scheduled in Analysis Ticket #9586.
tobiu closed this issue on Mar 27, 2026, 4:09 PM
tobiu assigned to @tobiu on Mar 27, 2026, 8:45 PM
Resolving the webpack
basePathagainstlocation.hrefinsidedist/developmentgenerates an incorrect absolute URL forwindowUrlbecause the AppWorker is only 2 folders deep, whereas the HTML document is 4 folders deep, resulting in a 404 forMicroLoader.mjs.We should return the relative URL directly and allow
window.opennatively to resolve it against the main thread's HTML document path. We also need to useNeo.windowConfigs?.[this.windowId] || Neo.configforbasePathanduseSharedWorkersinstead of reading the globalNeo.config.