Conditionally adds a trailing slash if the permalink structure has a trailing slash, strips the trailing slash if not. The string is passed through the 'user_trailingslashit' filter. Will remove trailing slash from string, if site is not set to have them.
(string) (Required) URL with or without a trailing slash.
(string) (Optional) The type of URL being considered (e.g. single, category, etc) for use in the filter.
(string) The URL with the trailing slash appended or stripped.
Get site index relational link.