Skip to content

Attachment page is blank when using ->withRouting(wordpress: true) #452

Closed
@tombroucke

Description

@tombroucke

Version

5.0.1

What did you expect to happen?

The visitor should be 301 redirected to the media itself:
https://example.com/mediafile > https://example.com/app/upload/2025/03/mediafile.pdf

What actually happens?

The visitor receives a 200 OK, with a blank page

Steps to reproduce

This only occurs on apache servers, I was not able to reproduce on nginx.

  1. Fresh install of bedrock, fresh install of sage 11
  2. Add ->withRouting(wordpress: true)
  3. Install website
  4. Upload media
  5. Visit media url ("View" button, not direct link to file)

System info

PHP 8.2
Apache server

Log output

Please confirm this isn't a support request.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature/routingIssues or PRs related to routing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions