diff --git a/src/containers/App/index.tsx b/src/containers/App/index.tsx
index 29e96fa80..d03150b9e 100644
--- a/src/containers/App/index.tsx
+++ b/src/containers/App/index.tsx
@@ -104,6 +104,14 @@ export const AppWrapper = () => {
path={updatePath('/ledgers')}
element={}
/>
+ }
+ />
+ }
+ />
{/* End: Redirects */}
{mode === 'custom' && (
} />
diff --git a/src/containers/App/test/App.test.jsx b/src/containers/App/test/App.test.jsx
index 15674340b..29347e8c0 100644
--- a/src/containers/App/test/App.test.jsx
+++ b/src/containers/App/test/App.test.jsx
@@ -161,6 +161,40 @@ describe('App container', () => {
])
})
+ it('renders ledger explorer page from index.html redirect', async () => {
+ wrapper = createWrapper('/index.html')
+ await flushPromises()
+ await flushPromises()
+ wrapper.update()
+
+ expect(document.title).toEqual('xrpl_explorer | ledgers')
+ expect(window.dataLayer).toEqual([
+ {
+ page_path: '/',
+ page_title: `xrpl_explorer | ledgers`,
+ event: 'screen_view',
+ network: 'mainnet',
+ },
+ ])
+ })
+
+ it('renders ledger explorer page from index.htm redirect', async () => {
+ wrapper = createWrapper('/index.html')
+ await flushPromises()
+ await flushPromises()
+ wrapper.update()
+
+ expect(document.title).toEqual('xrpl_explorer | ledgers')
+ expect(window.dataLayer).toEqual([
+ {
+ page_path: '/',
+ page_title: `xrpl_explorer | ledgers`,
+ event: 'screen_view',
+ network: 'mainnet',
+ },
+ ])
+ })
+
it('renders not found page', () => {
wrapper = createWrapper('/zzz')
return new Promise((r) => setTimeout(r, 10)).then(() => {