Skip to content

BlogCategoryUrl

The BlogCategoryUrl object extended the Url object and represents a link to the blog category.

classDiagram
  direction LR
  BlogCategoryUrl <|-- Url
  class Url{
  }
  class BlogCategoryUrl{
    BlogCategoryUrl forPage(int page)
  }

Methods

url.forPage(int page)

BlogCategoryUrl by calling this method you set the page parameter to the url

source
{{ url.forPage(2) }}
output
/en/n/category/upcoming-event/1/page/2

Examples

The forPage() method return the object so you can call relative or absolute properties on it

source
{{ url.forPage(2).absolute }}
output
https://example.com/en/n/category/upcoming-event/1/page/2