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.87%. Comparing base (21cea34) to head (2db3028).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1864      +/-   ##
==========================================
- Coverage   96.89%   96.87%   -0.02%     
==========================================
  Files         266      261       -5     
  Lines       19250    19116     -134     
  Branches      215      215              
==========================================
- Hits        18652    18519     -133     
+ Misses        592      591       -1     
  Partials        6        6              
Flag Coverage Δ
bridge 99.65% <ø> (ø)
explorer-rest ?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

🚀 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.

👍🏾

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.

3 participants