condition.same-domain

Checks if the link that you entered belongs to a specific site. If it does, returns true, otherwise, false.

Links must be specified in full, including the protocol (http, https, ftp).

The www. subdomain is ignored when checking, meaning that links to www.example.com and example.com are considered to be the same.

View example

How to pass a link address:

Component properties

NameTypeDescription
type*"condition.same-domain"Set component type.
dataanyThe link address to be checked. If you don't specify it, the value returned by the parent component (the one that contains condition.same-domain) is used.
hintstringValidation error message that a Toloker will see.
original*anyThe link address that your link is compared to.
Contact support

Last updated: March 30, 2023

Introduction
Getting started
Important tips
Useful recommendations
Working with Toloka
Projects
Pools
Tasks
Results
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support
FAQTroubleshootingSupportGlossary