Hooks / nab_ignore_trailing_slash_in_alternative_loading

apply_filters( 'nab_ignore_trailing_slash_in_alternative_loading', boolean $ignore_trailing_slash )

Filters whether alternative content loading should ignore the trailing slash in a URL when comparing the current URL and the URL of the alternative the visitor is supposed to see.

Description

If it’s set to ignore, https://example.com/some-page and https://example.com/some-page/ will be considered the same page. Otherwise, they’ll be different.

Parameters

$ignore_trailing_slash

(boolean) (Required) whether to ignore the trailing slash or not.