Skip to content

No Filter Audit Log Wrong URL #4201

Description

@c0shea

Describe the Bug

The URL that is redirected to when you select the No Filter option on the audit log page is wrong and doesn't keep the base path defined where BookStack is hosted.

Steps to Reproduce

Once you're on the Audit Log page if you change the Event Filter to something other than No Filter, such as page_create, the page works as expected. However, once you have a filter selected and then change it to No Filter, it redirects you to the wrong URL. It goes to /settings/audit at the root of the host rather than using the base defined in the APP_URL in the .env.

image

Selecting any other filter once you have a filter selected works and has the right URL.
image

Expected Behaviour

The URL for No Filter should keep the base URL, which in my case is /BookStack before /settings/audit

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v23.02.3

PHP Version

8.2.3

Hosting Environment

IIS running on Windows Server 2012 R2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions