diff --git a/modules/web/http/web_server_request.cpp b/modules/web/http/web_server_request.cpp index cea957dbf..edcd18b2c 100644 --- a/modules/web/http/web_server_request.cpp +++ b/modules/web/http/web_server_request.cpp @@ -443,6 +443,9 @@ String WebServerRequest::get_url_root_parent_add(const String &add) const { String WebServerRequest::get_url_root_add(const String &add) const { return get_url_root() + add; } +String WebServerRequest::get_url_root_current_add(const String &add) const { + return get_url_root_current() + add; +} String WebServerRequest::get_url_site_add(const String &add) const { return get_url_site() + add; } @@ -597,6 +600,7 @@ void WebServerRequest::_bind_methods() { ClassDB::bind_method(D_METHOD("get_url_root_parent_add", "add"), &WebServerRequest::get_url_root_parent_add); ClassDB::bind_method(D_METHOD("get_url_root_add", "add"), &WebServerRequest::get_url_root_add); + ClassDB::bind_method(D_METHOD("get_url_root_current_add", "add"), &WebServerRequest::get_url_root_current_add); ClassDB::bind_method(D_METHOD("get_url_site_add", "add"), &WebServerRequest::get_url_site_add); ClassDB::bind_method(D_METHOD("get_server"), &WebServerRequest::get_server); diff --git a/modules/web/http/web_server_request.h b/modules/web/http/web_server_request.h index 7be2ccffd..5fcc6e152 100644 --- a/modules/web/http/web_server_request.h +++ b/modules/web/http/web_server_request.h @@ -115,6 +115,7 @@ public: String get_url_root_parent_add(const String &add) const; String get_url_root_add(const String &add) const; + String get_url_root_current_add(const String &add) const; String get_url_site_add(const String &add) const; virtual void update();