Views pages only respond to the .md suffix and the /markdownify/ prefix.
When triggered with the Accept: text/markdown header, the Content-Type: text/markdown header and ?_format=markdown query parameter response is: "No route found for the specified format. Supported formats: html."

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

xlyz created an issue. See original summary.

xlyz’s picture

Status: Active » Needs review

robert-arias made their first commit to this issue’s fork.

robert-arias’s picture

Added correct handling of metadata. BubbleableMetadata::merge() clones $this and returns a new object, it doesn't mutate it, so views with pagers and filters were getting the same response as the first page, because of caching.

christophweber made their first commit to this issue’s fork.

  • christophweber committed 8d4266e1 on 1.1.x authored by xlyz
    Issue #3590402: Views pages don't respond to Accept: text/markdown and ?...
christophweber’s picture

Looks good to us, thank you! Rebased and merged into 1.1.x.

christophweber’s picture

Version: 1.1.4 » 1.1.x-dev
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

gillesbailleux’s picture

@christophweber: though the markdownify_views module is enabled using the v1.2.0 release, views produce a fatal error (HTTP 500) when accessed with the .md suffix.

Error: Typed property Drupal\views\Routing\ViewPageController::$contextualLinks must not be accessed before initialization in Drupal\views\Routing\ViewPageController->handle() (line 72 of core/modules/views/src/Routing/ViewPageController.php).

Tested on Drupal 11.4.5 / PHP 8.4.24.