The Backbone.JS URL() collection method creates an instance of the collection. It returns where the resource is located.
Syntax:
Collection.URL
Example:
Example
Output:
URL: /site/12345/page/54321
Explanation:
In the above example, the URL() method displays the URL for the “site” model.