I have created a custom module and it has a path /{nodeid}/{userid}
. I’m using Entity Print module to create pdf. I’m trying to render the pdf using a link (/print/pdf/node/{nodeid}/{userid}
) as mentioned in the documentation. But this simple loads a page not a pdf.
Drupal version is 9.
module routing yml:
certificate.content: path: '/{nodeid}/{userid}' defaults: _controller: 'DrupalcertificateControllerCertificateController::content' requirements: _permission: 'access content'