{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Đọc URL"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"đọc-url","__idx":0},"children":["Đọc URL"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Loại nút ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_getUrl"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"chức-năng","__idx":1},"children":["Chức năng"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Đọc địa chỉ đầy đủ, origin hoặc một tham số truy vấn từ trang hiện tại."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cấu-hình-trong-ứng-dụng-máy-tính","__idx":2},"children":["Cấu hình trong ứng dụng máy tính"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/get-url-en.f527c94150d497824041e85845bc0753636fd52c399d567df9b7df075e92f21b.0538f3a9.webp","alt":"Cấu hình nút \"Đọc URL\" trong ứng dụng máy tính"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ảnh chụp từ giao diện tiếng Anh của MoreLogin Desktop V2.73.101."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"đầu-vào","__idx":3},"children":["Đầu vào"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Các trường này nằm trong ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.browserUi.inputs"]},"."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Trường"},"children":["Trường"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Kiểu hoặc giá trị"},"children":["Kiểu hoặc giá trị"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Bắt buộc theo schema"},"children":["Bắt buộc theo schema"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Giá trị mặc định khi thực thi"},"children":["Giá trị mặc định khi thực thi"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Mô tả và giới hạn"},"children":["Mô tả và giới hạn"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"href\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"origin\""]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"search\""]}," (hỗ trợ tham chiếu biến)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"href\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Loại trích xuất. Giá trị ban đầu trong trình chỉnh sửa: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"href\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tên tham số"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"yêu-cầu-theo-chế-độ-và-giới-hạn","__idx":4},"children":["Yêu cầu theo chế độ và giới hạn"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eq"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"search\""]}]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Bắt buộc: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Với href, value giống url: cả hai đều là URL đầy đủ của trang hiện tại tại thời điểm đọc (bao gồm query/hash; sau khi điều hướng, đây có thể là địa chỉ sau chuyển hướng). Với origin, value là giao thức+host+cổng. Với search, key phải là chuỗi không rỗng sau khi phân giải. Với khóa truy vấn bị lặp lại, value lấy lần xuất hiện đầu tiên, còn ánh xạ query giữ lần xuất hiện cuối cùng. Nếu khóa không tồn tại, chuỗi rỗng được trả về."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Mã lỗi xác thực: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Khi type=search, key là bắt buộc. Nếu tham số không tồn tại, value là chuỗi rỗng \"\"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Mã lỗi xác thực: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tham-chiếu-đầu-vào","__idx":5},"children":["Tham chiếu đầu vào"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Trường"},"children":["Trường"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Dạng được phép"},"children":["Dạng được phép"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["literal"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["template"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["literal"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["template"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"đầu-ra","__idx":6},"children":["Đầu ra"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chế độ"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eq"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"href\""]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Trường đầu ra"},"children":["Trường đầu ra"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Kiểu hoặc giá trị"},"children":["Kiểu hoặc giá trị"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["url"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["origin"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pathname"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["query"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chế độ"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eq"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"origin\""]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Trường đầu ra"},"children":["Trường đầu ra"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Kiểu hoặc giá trị"},"children":["Kiểu hoặc giá trị"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["url"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["origin"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pathname"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["query"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chế độ"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eq"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"search\""]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Trường đầu ra"},"children":["Trường đầu ra"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Kiểu hoặc giá trị"},"children":["Kiểu hoặc giá trị"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["url"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["origin"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pathname"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["query"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tham chiếu các trường đã công bố dưới dạng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["${nodeId.data.field}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ví-dụ-json","__idx":7},"children":["Ví dụ JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ví dụ này đọc tham số truy vấn ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["item"]}," vào ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.value"]},". Dùng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: \"href\""]}," để lấy URL đầy đủ hoặc ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type: \"origin\""]}," để chỉ lấy origin."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"read_url\",\n  \"type\": \"browser_getUrl\",\n  \"data\": {\n    \"title\": \"Read the item query parameter\",\n    \"browserAction\": \"getUrl\",\n    \"browserUi\": {\n      \"inputs\": {\n        \"type\": \"search\",\n        \"key\": \"item\"\n      },\n      \"exception\": {\n        \"timeout\": 30000,\n        \"policy\": \"interrupt\"\n      }\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/nodes"},"children":["Quay lại danh mục nút"]}]}]},"headings":[{"value":"Đọc URL","id":"đọc-url","depth":1},{"value":"Chức năng","id":"chức-năng","depth":2},{"value":"Cấu hình trong ứng dụng máy tính","id":"cấu-hình-trong-ứng-dụng-máy-tính","depth":2},{"value":"Đầu vào","id":"đầu-vào","depth":2},{"value":"Yêu cầu theo chế độ và giới hạn","id":"yêu-cầu-theo-chế-độ-và-giới-hạn","depth":2},{"value":"Tham chiếu đầu vào","id":"tham-chiếu-đầu-vào","depth":2},{"value":"Đầu ra","id":"đầu-ra","depth":2},{"value":"Ví dụ JSON","id":"ví-dụ-json","depth":2}],"frontmatter":{"seo":{"title":"Đọc URL"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/browser-rpa/nodes/navigation/get-url","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}