New in 1.39.0

urlForDataItem(dataItem, options)

Determines the URL of a data item's details page.

The urlForDataItem function can be used with DataItem instances.

The origin of the generated URL can be configured using Scrivito.configure. If, for example, the origin is set to “”, the URL resulting from the above call would be “”.


  • dataItem (Object) – A DataItem instance.


String – The URL of the details page of the model instance concerned, or null if no such details page exists.