I am using Power Automate to return a PDF's content from a SharePoint Document Library and display it in a PDF Viewer in Power Apps. The user selects a document from the left-most gallery and it displays in the PDF viewer in the middle of the screen.

This flow runs great. It grabs the pdf content from the selected PDF in the Power App and returns it to the PDF viewer, which requires a URL. It then uses that URL to display the PDF in PowerApps. So far so good.

However, I want users to be able to open the PDF in particular places by selecting one of the 'In This Chapter' gallery items. I am trying to do this using a string like this (the '#' at the end of the URL):

The URL opens correctly in the browser, but whenever I pass a URL with '#' through my workflow, however, it returns an error:

Can anyone explain why this is and how to get around it? Being able to link directly to the section links is a desired feature within the app. I am trying to avoid hard-coding page numbers into the OnSelect property of each item.
Thanks!