fix(preview): preserve direct localhost navigation #3939
MergedChrrxs(GitHub profile, opens in a new tab)merged 4 commits into
main fromrefs/pull/3939/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
- apps/web/src/components/preview/PreviewView.tsx line 118OutdatedResolvedby Chrrxs(GitHub profile, opens in a new tab)@@ -115,4 +115,4 @@115115 const handleSubmitUrl = useCallback(116116 async (next: string) => {117117 try {118- const resolvedUrl = resolveDiscoveredServerUrl(threadRef.environmentId, next);118+ const resolvedUrl = resolveBrowserNavigationTarget(threadRef.environmentId, {
- apps/web/src/components/preview/PreviewView.tsx line 121OutdatedResolvedby Chrrxs(GitHub profile, opens in a new tab)@@ -115,4 +115,7 @@115115 const handleSubmitUrl = useCallback(116116 async (next: string) => {117117 try {118- const resolvedUrl = resolveDiscoveredServerUrl(threadRef.environmentId, next);118+ const resolvedUrl = resolveBrowserNavigationTarget(threadRef.environmentId, {119+ kind: "url",120+ url: next,121+ }).resolvedUrl;
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged this2fae0d0
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
da5e6309-b94e-4ecf-8afd-4ff0b1b11651You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share