ijokarumawak commented on a change in pull request #211: NIFIREG-295 Add
support for proxying via Apache Knox
URL: https://github.com/apache/nifi-registry/pull/211#discussion_r313190916
##########
File path:
nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.dev.html
##########
@@ -19,7 +19,7 @@
<html>
<head>
<title>NiFi Registry</title>
- <base href="/">
+ <base href="./">
Review comment:
Knox adds a path fragment such as `/gateway/sandbox/nifi-registry-app/` in
front of `/nifi-registry/`. If the `base href` is set to `/`, all relative
resource references will be resolved without the Knox part.
For example, if a resource
`/gateway/sandbox/nifi-registry-app/nifi-registry/images/x.png` is referenced
with a relative path `images/x.png`, then `base href="/"` will resolve it as
`/images/x.png` that will result a 404 error.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services