url_suffix Twig Filter

The url_suffix filter parses the URL and returns just the domain name suffix (i.e. the top-level domain and second-level domain if it exists).

For example, if the URL value is "https://www.branchcms.com" then the url_suffix filter would return "com".

If the URL value is "https://www.names.co.uk" then the url_suffix filter would return "co.uk".

This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{{ myUrl|url_suffix }}
This documentation is only for Aptuitiv CMS. Learn more.
Get Started With Aptuitiv