@@ -140,6 +140,10 @@ export const getStaticProps = (async ({ locale }) => {
140
140
} ) satisfies GetStaticProps < BasePageProps >
141
141
142
142
const AssetsPage = ( ) => {
143
+ // Ignore locale in the URL for SVG path in public directory to fix broken link
144
+ // SVG path changes from /en/images => /images
145
+ const svgPathFromOrigin = window . location . origin
146
+
143
147
const { t } = useTranslation ( "page-assets" )
144
148
const assetPageHeroImage = useColorModeValue (
145
149
ethDiamondBlack ,
@@ -389,73 +393,73 @@ const AssetsPage = () => {
389
393
title = { t ( "page-assets-eth-diamond-glyph" ) }
390
394
alt = { t ( "page-assets-eth-diamond-glyph" ) }
391
395
image = { ethDiamondGlyph }
392
- svgUrl = " /images/assets/svgs/eth-diamond-glyph.svg"
396
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-glyph.svg` }
393
397
/>
394
398
< AssetDownload
395
399
title = { t ( "page-assets-eth-diamond-gray" ) }
396
400
alt = { t ( "page-assets-eth-diamond-gray" ) }
397
401
image = { ethDiamondBlack }
398
- svgUrl = " /images/assets/svgs/eth-diamond-black.svg"
402
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-black.svg` }
399
403
/>
400
404
< AssetDownload
401
405
title = { t ( "page-assets-eth-diamond-color" ) }
402
406
alt = { t ( "page-assets-eth-diamond-color" ) }
403
407
image = { ethDiamondColor }
404
- svgUrl = " /images/assets/svgs/eth-diamond-rainbow.svg"
408
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-rainbow.svg` }
405
409
/>
406
410
</ Row >
407
411
< Row >
408
412
< AssetDownload
409
413
title = { t ( "page-assets-eth-diamond-purple" ) }
410
414
alt = { t ( "page-assets-eth-diamond-purple" ) }
411
415
image = { ethDiamondPurple }
412
- svgUrl = " /images/assets/svgs/eth-diamond-purple.svg"
416
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-purple.svg` }
413
417
/>
414
418
< AssetDownload
415
419
title = { t ( "page-assets-eth-diamond-colored" ) }
416
420
alt = { t ( "page-assets-eth-diamond-colored" ) }
417
421
image = { ethGlyphColored }
418
- svgUrl = " /images/assets/svgs/eth-glyph-colored.svg"
422
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-glyph-colored.svg` }
419
423
/>
420
424
</ Row >
421
425
< Row >
422
426
< AssetDownload
423
427
title = { t ( "page-assets-eth-logo-portrait-gray" ) }
424
428
alt = { t ( "page-assets-eth-logo-portrait-gray" ) }
425
429
image = { ethPortraitBlack }
426
- svgUrl = " /images/assets/svgs/ethereum-logo-portrait-black.svg "
430
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-portrait-black.svg ` }
427
431
/>
428
432
< AssetDownload
429
433
title = { t ( "page-assets-eth-logo-landscape-gray" ) }
430
434
alt = { t ( "page-assets-eth-logo-landscape-gray" ) }
431
435
image = { ethLandscapeBlack }
432
- svgUrl = " /images/assets/svgs/ethereum-logo-landscape-black.svg"
436
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-landscape-black.svg` }
433
437
/>
434
438
< AssetDownload
435
439
title = { t ( "page-assets-eth-wordmark-gray" ) }
436
440
alt = { t ( "page-assets-eth-wordmark-gray" ) }
437
441
image = { ethWordmarkBlack }
438
- svgUrl = " /images/assets/svgs/ethereum-wordmark-black.svg"
442
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-wordmark-black.svg` }
439
443
/>
440
444
</ Row >
441
445
< Row >
442
446
< AssetDownload
443
447
title = { t ( "page-assets-eth-logo-portrait-purple" ) }
444
448
alt = { t ( "page-assets-eth-logo-portrait-purple" ) }
445
449
image = { ethPortraitPurple }
446
- svgUrl = " /images/assets/svgs/ethereum-logo-portrait-purple.svg"
450
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-portrait-purple.svg` }
447
451
/>
448
452
< AssetDownload
449
453
title = { t ( "page-assets-eth-logo-landscape-purple" ) }
450
454
alt = { t ( "page-assets-eth-logo-landscape-purple" ) }
451
455
image = { ethLandscapePurple }
452
- svgUrl = " /images/assets/svgs/ethereum-logo-landscape-purple.svg"
456
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-landscape-purple.svg` }
453
457
/>
454
458
< AssetDownload
455
459
title = { t ( "page-assets-eth-wordmark-purple" ) }
456
460
alt = { t ( "page-assets-eth-wordmark-purple" ) }
457
461
image = { ethWordmarkPurple }
458
- svgUrl = " /images/assets/svgs/ethereum-wordmark-purple-purple.svg"
462
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-wordmark-purple-purple.svg` }
459
463
/>
460
464
</ Row >
461
465
< H3 > { t ( "page-assets-page-assets-solid-background" ) } </ H3 >
@@ -464,19 +468,19 @@ const AssetsPage = () => {
464
468
title = { t ( "page-assets-eth-diamond-white" ) }
465
469
alt = { t ( "page-assets-eth-diamond-white" ) }
466
470
image = { ethDiamondBlackWhite }
467
- svgUrl = " /images/assets/svgs/eth-diamond-black-white.svg"
471
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-black-white.svg` }
468
472
/>
469
473
< AssetDownload
470
474
title = { t ( "page-assets-eth-diamond-gray" ) }
471
475
alt = { t ( "page-assets-eth-diamond-gray" ) }
472
476
image = { ethDiamondBlackGray }
473
- svgUrl = " /images/assets/svgs/eth-diamond-black-gray.svg"
477
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-black-gray.svg` }
474
478
/>
475
479
< AssetDownload
476
480
title = { t ( "page-assets-eth-diamond-purple" ) }
477
481
alt = { t ( "page-assets-eth-diamond-purple" ) }
478
482
image = { ethDiamondPurplePurple }
479
- svgUrl = " /images/assets/svgs/eth-diamond-purple-purple.svg"
483
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-purple-purple.svg` }
480
484
/>
481
485
</ Row >
482
486
@@ -485,67 +489,67 @@ const AssetsPage = () => {
485
489
title = { t ( "page-assets-eth-diamond-white" ) }
486
490
alt = { t ( "page-assets-eth-diamond-white" ) }
487
491
image = { ethDiamondPurpleWhite }
488
- svgUrl = " /images/assets/svgs/eth-diamond-purple-white.svg"
492
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-purple-white.svg` }
489
493
/>
490
494
< AssetDownload
491
495
title = { t ( "page-assets-eth-diamond-white" ) }
492
496
alt = { t ( "page-assets-eth-diamond-white" ) }
493
497
image = { ethDiamondPurpleWhite }
494
- svgUrl = " /images/assets/svgs/eth-diamond-purple-white.svg"
498
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/eth-diamond-purple-white.svg` }
495
499
/>
496
500
</ Row >
497
501
< Row >
498
502
< AssetDownload
499
503
title = { t ( "page-assets-eth-logo-portrait-gray" ) }
500
504
alt = { t ( "page-assets-eth-logo-portrait-gray" ) }
501
505
image = { ethPortraitBlackGray }
502
- svgUrl = " /images/assets/svgs/ethereum-logo-portrait-black-gray.svg"
506
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-portrait-black-gray.svg` }
503
507
/>
504
508
< AssetDownload
505
509
title = { t ( "page-assets-eth-logo-landscape-gray" ) }
506
510
alt = { t ( "page-assets-eth-logo-landscape-gray" ) }
507
511
image = { ethLandscapeBlackGray }
508
- svgUrl = " /images/assets/svgs/ethereum-logo-landscape-black-gray.svg"
512
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-landscape-black-gray.svg` }
509
513
/>
510
514
< AssetDownload
511
515
title = { t ( "page-assets-eth-wordmark-gray" ) }
512
516
alt = { t ( "page-assets-eth-wordmark-gray" ) }
513
517
image = { ethWordmarkBlackGray }
514
- svgUrl = " /images/assets/svgs/ethereum-wordmark-black-gray.svg"
518
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-wordmark-black-gray.svg` }
515
519
/>
516
520
</ Row >
517
521
< Row >
518
522
< AssetDownload
519
523
title = { t ( "page-assets-eth-logo-portrait-purple" ) }
520
524
alt = { t ( "page-assets-eth-logo-portrait-purple" ) }
521
525
image = { ethPortraitPurplePurple }
522
- svgUrl = " /images/assets/svgs/ethereum-logo-portrait-purple-purple.svg"
526
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-portrait-purple-purple.svg` }
523
527
/>
524
528
< AssetDownload
525
529
title = { t ( "page-assets-eth-logo-landscape-purple" ) }
526
530
alt = { t ( "page-assets-eth-logo-landscape-purple" ) }
527
531
image = { ethLandscapePurplePurple }
528
- svgUrl = " /images/assets/svgs/ethereum-logo-landscape-purple-purple.svg"
532
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-landscape-purple-purple.svg` }
529
533
/>
530
534
< AssetDownload
531
535
title = { t ( "page-assets-eth-wordmark-purple" ) }
532
536
alt = { t ( "page-assets-eth-wordmark-purple" ) }
533
537
image = { ethWordmarkPurplePurple }
534
- svgUrl = " /images/assets/svgs/ethereum-wordmark-purple-purple.svg"
538
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-wordmark-purple-purple.svg` }
535
539
/>
536
540
</ Row >
537
541
< Row >
538
542
< AssetDownload
539
543
title = { t ( "page-assets-eth-logo-landscape-white" ) }
540
544
alt = { t ( "page-assets-eth-logo-landscape-white" ) }
541
545
image = { ethLandscapePurpleWhite }
542
- svgUrl = " /images/assets/svgs/ethereum-logo-landscape-purple-white.svg"
546
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-logo-landscape-purple-white.svg` }
543
547
/>
544
548
< AssetDownload
545
549
title = { t ( "page-assets-eth-wordmark-white" ) }
546
550
alt = { t ( "page-assets-eth-wordmark-white" ) }
547
551
image = { ethWordmarkPurpleWhite }
548
- svgUrl = " /images/assets/svgs/ethereum-wordmark-purple-white.svg"
552
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/ethereum-wordmark-purple-white.svg` }
549
553
/>
550
554
</ Row >
551
555
< H2 id = "historical-illustrations" > { t ( "page-assets-illustrations" ) } </ H2 >
@@ -559,7 +563,7 @@ const AssetsPage = () => {
559
563
title = { t ( "page-assets-merge-panda" ) }
560
564
alt = { t ( "page-assets-merge-panda" ) }
561
565
image = { mergePanda }
562
- svgUrl = " /images/assets/svgs/merge-panda.svg"
566
+ svgUrl = { ` ${ svgPathFromOrigin } /images/assets/svgs/merge-panda.svg` }
563
567
/>
564
568
</ Row >
565
569
</ Box >
0 commit comments