[PR #178] fix: fix broken layout in Docker due to CSS 302 redirect (#172) #170

Closed
opened 2026-02-26 17:37:36 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/178

State: closed
Merged: Yes


Summary

  • Replace UseStatusCodePagesWithRedirects with UseStatusCodePagesWithReExecute to avoid HTTP 302 on CSS/static asset requests in Docker (root cause of #172)
  • Replace DownloadFiles.ps1 with admin.ps1 download-assets / clean-assets commands
  • Download Radzen CSS/fonts from correct version tag (instead of master branch)
  • Add .radzen-version marker file to skip re-download when version already matches
  • Remove fonts from git tracking, add all Radzen assets to .gitignore

Test plan

  • Build Docker image and verify CSS loads with HTTP 200 (not 302)
  • Run admin.ps1 -Command download-assets — verify downloads on first run, skips on second
  • Run admin.ps1 -Command clean-assets then download-assets — verify re-download
  • Verify layout renders correctly in Docker with ASPNETCORE_ENVIRONMENT=Production

refs #172

**Original Pull Request:** https://github.com/Corsinvest/cv4pve-admin/pull/178 **State:** closed **Merged:** Yes --- ## Summary - Replace `UseStatusCodePagesWithRedirects` with `UseStatusCodePagesWithReExecute` to avoid HTTP 302 on CSS/static asset requests in Docker (root cause of #172) - Replace `DownloadFiles.ps1` with `admin.ps1 download-assets` / `clean-assets` commands - Download Radzen CSS/fonts from correct version tag (instead of `master` branch) - Add `.radzen-version` marker file to skip re-download when version already matches - Remove fonts from git tracking, add all Radzen assets to `.gitignore` ## Test plan - [ ] Build Docker image and verify CSS loads with HTTP 200 (not 302) - [ ] Run `admin.ps1 -Command download-assets` — verify downloads on first run, skips on second - [ ] Run `admin.ps1 -Command clean-assets` then `download-assets` — verify re-download - [ ] Verify layout renders correctly in Docker with `ASPNETCORE_ENVIRONMENT=Production` refs #172
kerem 2026-02-26 17:37:36 +03:00
kerem changed title from [PR #178] [MERGED] fix: fix broken layout in Docker due to CSS 302 redirect (#172) to [PR #178] fix: fix broken layout in Docker due to CSS 302 redirect (#172) 2026-03-07 19:57:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-admin#170
No description provided.