Add configurable subpath support for UI deployment#34
Merged
Conversation
Co-authored-by: dkrizic <1181349+dkrizic@users.noreply.github.com>
Co-authored-by: dkrizic <1181349+dkrizic@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for frontend in subpath
Add configurable subpath support for UI deployment
Jan 23, 2026
dkrizic
approved these changes
Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables deploying the UI at arbitrary paths (e.g.,
/feature,/app/v1) instead of root only.Changes
Configuration
SUBPATHenvironment variable /--subpathCLI flag/, strips trailing/)Route Registration
registerHandlers()prefixes all routes with configured subpath/,/features/*,/healthTemplate Updates
index.gohtml: HTMX target uses{{.Subpath}}/features/listfeatures_list.gohtml: Form actions use{{$.Subpath}}/features/{create,update,delete}Helm Integration
values.yaml: Addedui.subpathfieldui-configmap.yaml: ExposesSUBPATHenvironment variableui-deployment.yaml: Health probe paths dynamically constructed as{{ print (.Values.ui.subpath | default "") "/health" }}Usage
Results in UI accessible at
/feature/with health checks at/feature/health.Testing
Added
TestSubpathSupportcovering empty subpath, single-level (/feature), multi-level (/app/v1), and 404 behavior for incorrect paths.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/update-job-proxy /update-job-proxy service --proxy-cert /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt 9021231/b085/vet.cfg rg/toolchain@v0.0.1-go1.25.5.linux-amd64/pkg/tool/linux_amd64/link -p crypto/sha1 mpile rg/toolchain@v0.0.1-go1.25.5.linux-amd64/pkg/toosecurity(dns block)/update-job-proxy /update-job-proxy -o br-a4a7c9798eb1 -j DROP C_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.pem rg/toolchain@v0./usr/share/ca-certificates/mozilla/Hongkong_Post_Root_CA_3.crt test /tmp/go-build121git -trimpath /usr/bin/gcc test -e oot_CA_2022.pem gcc /usr/bin/test 374748166136cca8/usr/sbin/iptables c /usr/bin/git test(dns block)/update-job-proxy /update-job-proxy DROP /opt/go/bin/test/etc/ssl/certs/ce5e74ef.0 test -e cation_Authority.pem test est ertification_Aut/usr/bin/git git /bin/test test -e CA_v1.pem test /opt/go/bin/test zenpe.com.pem git endabot/../../bi-t test(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.