diff --git a/gui/src/components/OnnxError.tsx b/gui/src/components/OnnxError.tsx index 135c3bc8..00b0ad57 100644 --- a/gui/src/components/OnnxError.tsx +++ b/gui/src/components/OnnxError.tsx @@ -6,6 +6,8 @@ export interface OnnxErrorProps { } export function OnnxError(props: OnnxErrorProps) { + const linkback = location.href.replace(location.search, ''); + return ( @@ -44,7 +46,7 @@ export function OnnxError(props: OnnxErrorProps) { If you are trying to use a remote API server or an alternative port, you can put the address into the - query string, like {window.location.origin}?api=http://localhost:5001. + query string, like {linkback}?api=http://localhost:5001.