Skip to content
Myr

Improve wording of tip for Unique URLs chapter

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Grey Li · committed by GitHub · parent 8074cbd · Browse files · 1 file+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−7 removed

  • other:+7 added−7 removed

1 file+7 added−7 removed

modified:docs/quickstart.rst+7 added-7 removed
262 unmodified lines
263 def about():264 return 'The about page'265266The canonical URL for the ``projects`` endpoint has a trailing slash.267It's similar to a folder in a file system. If you access ``/projects`` - the URL without268a trailing slash, Flask redirects you to the canonical URL with the269trailing slash - ``/projects/``.267It's similar to a folder in a file system. If you access the URL without268a trailing slash (``/projects``), Flask redirects you to the canonical URL269with the trailing slash (``/projects/``).270271The canonical URL for the ``about`` endpoint does not have a trailing272slash. It's similar to the pathname of a file. Accessing ``/about/`` - the URL with a273trailing slash produces a 404 "Not Found" error. This helps keep URLs274unique for these resources, which helps search engines avoid indexing275the same page twice.272slash. It's similar to the pathname of a file. Accessing the URL with a273trailing slash (``/about/``) produces a 404 "Not Found" error. This helps274keep URLs unique for these resources, which helps search engines avoid275indexing the same page twice.276277278.. _url-building:279
640 unmodified lines