Comments (3)
I have discovered some issues with our current sitemap.xml
that I think are worth addressing.
1. sitemap.xml
includes references to nested sitemaps
Our current sitemap.xml
includes references to:
- https://tradingstrategy.ai/api/sitemap/exchanges/sitemap.xml
- https://tradingstrategy.ai/blog/rss.xml
- https://tradingstrategy.ai/docs/sitemap-docs.xml
- https://tradingstrategy.ai/api/sitemap/pairs/paged/0.xml (and 4 additional pages)
As a rule, sitemaps should include entries for pages, and sitemap indexes should include references to other sitemaps. A sitemap itself should not include nested sitemap entries.
See:
- Google: Manage your sitemaps with a sitemap index file
- Stack Overflow: Multiple sitemaps within single sitemap file
Recommended solution
Create a sitemap index served from /sitemap.xml
which references other sitemaps.
Alternatively, we could read all other sitemaps and compose a single sitemap.xml
. This seems more cumbersome and costly, and may result in size or performance issues down the road.
from frontend.
2. Nested sitemaps served from invalid path nodes
Our nested sitemaps for exchanges and pairs are at a different node in the page hierarchy than the pages they reference.
Per Google's documentation linked below:
Sitemaps that are referenced in the sitemap index file must be in the same directory as the sitemap index file, or lower in the site hierarchy. For example, if the sitemap index file is at
https://example.com/public/sitemap_index.xml
, it can only contain sitemaps that are in the same or deeper directory, likehttps://example.com/public/shared/...
.
See:
Recommended solution
This could be fixed by having a frontend
proxy that serves these resources from the correct path node. E.g., /trading-view/sitemap-exchanges.xml
route would proxy the content from /api/sitemap/exchanges/sitemap.xml
. The proxy route is what would be included in the sitemap index.
from frontend.
3. Blog and Glossary sitemaps
Our current sitemap.xml
does not include the glossary sitemap (even with the "incorrect" nesting approach).
Blog posts are currently via /blog/rss.xml
, which is not a valid format within a sitemap index.
Recommended solution
Use a sitemap index (see 1. above) and include /glossary/sitemap.xml
as well as a new /blog/sitemap.xml
.
from frontend.
Related Issues (20)
- Replace Liquidity (USD) with TVL (USD) on token index views
- Replace "Available liquidity" with "TVL" on token details page
- Invalid time bucket in URL generates UnhandledRejection error
- Address common recurring Sentry errors
- Add enzyme-ethereum-btc-eth-stoch-rsi strategy
- Add "max" time period option strategy performance chart
- Deprecated strategies with replacement strategy pointer
- Display top 5 strategies on front page
- highlighting text on strategy tile causes it to load the strategy page HOT 1
- Simplify strategy tiles on front page
- Blog post details page not reactive to slug change
- Sharpe ratio tooltip issue
- Strategy performance chart period performance metric is inaccurate for "max" timeframe
- Unfrozen open positions should display "latest" column
- Hide flagged strategy positions HOT 1
- Display "failed" badge on failed trades in trade table HOT 1
- Home page updates for strategy participants phase 1
- Fee data provided by strategy metadata instead of frontend config
- Use position "hidden" flag as source for identifying hidden position records
- Hide strategy error messages for non-admins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frontend.