Skip to content

Conversation

@cryptoBeliever
Copy link
Contributor

@cryptoBeliever cryptoBeliever commented Dec 29, 2025

Problem

Swagger UI was failing to load the OpenAPI spec when served under prefixed paths (e.g. /testnet/ethereum-wrapped/openapi).
Relative paths like ../static/... were resolved incorrectly, resulting in 404 Not Found.

Solution

The OpenAPI spec URL is now derived dynamically from window.location.pathname by removing the /openapi suffix and appending the expected static spec location.

This allows the same index.html to work correctly under:

  • /openapi
  • /testnet/ethereum-wrapped/openapi

without any environment-specific configuration.

@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.14%. Comparing base (a046987) to head (7ceaee0).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #1864   +/-   ##
=======================================
  Coverage   96.14%   96.14%           
=======================================
  Files         343      343           
  Lines       23805    23805           
  Branches      402      402           
=======================================
  Hits        22887    22887           
  Misses        905      905           
  Partials       13       13           
Flag Coverage Δ
bridge 99.65% <ø> (ø)
explorer-frontend 95.00% <ø> (ø)
explorer-nodewatch 98.57% <ø> (ø)
explorer-rest 99.25% <ø> (ø)
faucet-authenticator 100.00% <ø> (ø)
faucet-backend 98.77% <ø> (ø)
faucet-frontend 100.00% <ø> (ø)
lightapi-python 98.67% <ø> (ø)
tools-shoestring 97.06% <ø> (ø)
wallet-common-core 97.06% <ø> (ø)
wallet-common-ethereum 99.01% <ø> (ø)
wallet-common-symbol 95.28% <ø> (ø)
wallet-mobile-symbol 92.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@Wayonb Wayonb left a comment

Choose a reason for hiding this comment

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

👍🏾

@cryptoBeliever cryptoBeliever force-pushed the bridge/fix/openapi-swagger-loading-fix branch from 2db3028 to 7ceaee0 Compare February 5, 2026 16:22
@cryptoBeliever cryptoBeliever merged commit e06f880 into dev Feb 5, 2026
49 checks passed
@cryptoBeliever cryptoBeliever deleted the bridge/fix/openapi-swagger-loading-fix branch February 5, 2026 16:45
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