Comments (2)
Search engines and browsers treat URLs with or without a trailing slash the same. If you asked someone to type a URL they woud never add a trailing slash to the URL, so in general it's simpler and easier to have a URL without the trailing slash.
I think the rule of thumb whether you use a trailing slash or not is to be consistent. If you don't use a trailing slash, then consistently don't use it. I don't think forcing a trailing slash is a good idea because for most people they don't use it. Best to go with the common use case, and not have it.
from grav.
@rhukster: You are right about consistency.
Please take note that the current implementation of {{ home_url }}
in Grav 1.7.45 is inconsistent:
- Home does not add a trailing slash to the URL
- Subpages do add a trailing slash
wget --no-parent
requires trailing slashes.
from grav.
Related Issues (20)
- YYYY-MM-DD formatted date in header doesn't work but "YYYY-MM-DD" and DD-MM-YYYY do HOT 2
- Critical Files Missing in Recent Grav Core + Admin Package (v1.7.45) HOT 2
- [add-resource] New Theme: grama HOT 8
- [add-resource] New Plugin Studioeditor HOT 31
- XMPP: Post to PubSub HOT 6
- Backup is enabled by default on new install, when the docs says it should not be HOT 4
- The list of pages are not loading in Grav Admin due to flex objects plugin HOT 4
- [change-resource] Take over Plugin/Theme HOT 3
- redirect_trailing_slash doesn't work with custom_base_url
- Home page is looping when custom_base_url is set HOT 1
- Modify form input names
- [change-resource] Take over Plugin/Theme HOT 2
- Outdated / incompatible dependencies
- [add-resource] New Theme Canvas HOT 1
- `PHP Deprecated` for `Return type` in `system/src/Grav/Common/Filesystem` with PHP 8.3.6 HOT 1
- Menu icon rendered on homepage only
- content not rendering UTF-8 special characters HOT 2
- Strip comments in theme/sekeleton `CHANGELOG.md` when displaying in grav website
- [add-resource] New Plugin: Umami Analytics
- publish_date not posting articles as expected HOT 1
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 grav.