Skip to content

fix: query url when opa is served not from root path#7644

Merged
sspaink merged 2 commits intoopen-policy-agent:mainfrom
olegKoshmeliuk:main
May 30, 2025
Merged

fix: query url when opa is served not from root path#7644
sspaink merged 2 commits intoopen-policy-agent:mainfrom
olegKoshmeliuk:main

Conversation

@olegKoshmeliuk
Copy link
Copy Markdown
Contributor

@olegKoshmeliuk olegKoshmeliuk commented May 30, 2025

Why the changes in this PR are needed?

When OPA is hosted from non root path it's not possible to use test index.html page

What are the changes in this PR?

Changed index.html template to use relative fetch path. this will fix wrong path when opa is hosted from non root folder
image

Notes to assist PR review:

Further comments:

Signed-off-by: Oleg Koshmeliuk <oleg.koshmeliuk@gmail.com>
Copy link
Copy Markdown
Member

@sspaink sspaink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this! I tried it out locally as well and it worked as expected.

@sspaink sspaink merged commit d615732 into open-policy-agent:main May 30, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants