I have been unable to get tabbed view pages working in Drupal 8/9 if I include a contextual filter in my view. There are a whole lot of issues around this, some up to 3 years old! Anyway, this module appears to provide a way to achieve what I want. Unfortunately, the links it produces are not very visually appealing:
It would be much nicer if these links were styled as tabs. I found lots of stuff about doing this using pure CSS, e.g. https://css-tricks.com/better-tabs-with-round-out-borders/.
The necessary steps are:
My modified template looks like this:
{{ attach_library('views_display_switch/tabs') }}
<div class="views-display-switch">
<ul class="views-display-switch-nav">
{% for link in links %}
<li>{{ link }}</li>
{% endfor%}
</ul>
</div>
Copies of the two new files and the modified template are in the attached zip.
The result now looks like this:
If you were to include this feature in your module, it might need a little work on the CSS to ensure it worked across browsers, meets the Drupal CSS coding standards and works with themes. This goes a bit beyond my limited Drupal/web-design knowledge and abilities I'm afraid!
Closed: works as designed
1.1
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.