From 97c13a97f3de471994697339bb29cfa8e917475a Mon Sep 17 00:00:00 2001 From: Osei Fortune Date: Fri, 26 Apr 2024 17:10:54 -0400 Subject: [PATCH] fix: url href --- NativeScript/runtime/URLImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NativeScript/runtime/URLImpl.cpp b/NativeScript/runtime/URLImpl.cpp index 54a10530..50ca6157 100644 --- a/NativeScript/runtime/URLImpl.cpp +++ b/NativeScript/runtime/URLImpl.cpp @@ -268,7 +268,7 @@ void URLImpl::GetHref(v8::Local property, } auto isolate = info.GetIsolate(); - auto value = ptr->GetURL()->get_hostname(); + auto value = ptr->GetURL()->get_href(); info.GetReturnValue().Set(ToV8String(isolate, value.data(), (int)value.length()));