We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grow/grow/routing/path_format.py
Line 45 in 4f0c21f
In certain cases, it is undesirable to have the trailing slash. Could we create a way to get the route without a trailing slash?
Two key cases I'm trying to solve:
<link rel="canonical" href="{{doc.url}}">
always results in a trailing slash but we need to be able to specify one without it.
<link rel="canonical" href="/about/">
Sitemap generation always results in a trailing slash.
<url> <loc>https://xxx.com/about/</loc> </url>
Desired:
<url> <loc>https://xxx.com/about</loc> </url>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
grow/grow/routing/path_format.py
Line 45 in 4f0c21f
In certain cases, it is undesirable to have the trailing slash. Could we create a way to get the route without a trailing slash?
Two key cases I'm trying to solve:
{{doc.url}}
always results in a trailing slash but we need to be able to specify one without it.
Sitemap
Sitemap generation always results in a trailing slash.
Desired:
The text was updated successfully, but these errors were encountered: