Skip to content

BlogListUrl

The BlogListUrl object extends the Url object. Represents a link to the list of blog articles.

classDiagram
  direction LR
  BlogListUrl <|-- Url
  class Url{
  }
  class BlogListUrl{
    array params
    BlogListUrl forPage(int page)
  }

Methods

url.forPage(int page)

Method returns BlogListUrl object with the page parameter set in the url.

source
{{ url.forPage(3).relative }}
output
/pl/n/list/page/3

Examples

Displaying absolute url with page parameter set:

source
{{ url.forPage(3).absolute }}
output
https://domain.com/pl/n/list/page/3