Comments (4)
from trailing-slash-guide.
Hi!
This project is not directly related to Docusaurus so can you re-open this issue on Docusaurus instead?
I'll look at this on Monday anyway
It makes me think about another issue opened recently (facebook/docusaurus#5055)
├── react-native-render-html.html
I don't understand, Docusaurus does not create an index.html
file anymore in beta.2, while it did before?
Can you deploy your site with the bug somewhere (a fork?), so that I can see the live site + have the ability to inspect the gh-branch?
Ideally, the sitemap generated for gh-pages would add a trailing slash to the root URL to avoid redirects, or there could be an option to deal with the root.
I don't think, we don't want to hardcode special cases per host.
GH pages should be able to serve files without needing/redirecting a trailing slash, cf https://slorber.github.io/trailing-slash-guide/file
from trailing-slash-guide.
@slorber All right, I'll try to make a reproduction and file a report. I didn't report on Docusaurus because I wasn't sure it's really a bug...
I don't think, we don't want to hardcode special cases per host.
Sure hardcoding is bad, however there could be an actionable solution for all those who're using GH pages and don't want to suffer from degraded SEO. Perhaps trailingSlash: 'root'
meaning, one trailing slash is expected for the top level route, no trailing slash for other routes. That would match per-repository GH Pages deployments.
from trailing-slash-guide.
Closing in favor of facebook/docusaurus#5077
from trailing-slash-guide.
Related Issues (5)
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 trailing-slash-guide.