Skip to content

Commit

Permalink
Redirect trailing slash config option (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-3 authored Oct 16, 2024
1 parent b341049 commit 22fb88e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ metadata:
|sync_translations |false|If enabled, translations will be synchronized on each sync/deploy similarly to other resources, meaning if you remove a translation form a translation file and sync it, it will disappear from the Instance. It will also remove all translations from the deleted file. The default behaviour (for backwards compatibility) is that translations will not be deleted; in order to delete a translation one needs to explicitly call `admin_translation_unset` GraphQL mutation. This setting is compatible with `modules_that_allow_delete_on_deploy`.
|html_format_exact_match |false|If enabled, platformOS will return 404 for all formats that have not been defined. For example, if app/views/pages/my-page.liquid exists, platformOS will render this page for multiple formats - `/my-page`, `/my-page.php`, `/my-page.asp`. Enabling this setting will render this page only for `/my-page`.
|validations_for_graph_queries |false|When the feature is enabled, platformOS performs additional consistency validations for specific GraphQL queries, with a primary focus on mutations. These validations are designed to verify that the developer's queries express a valid and well-defined intent. By enforcing these consistency checks, platformOS helps maintain data integrity and prevents unintended or ambiguous mutations from being executed. This feature serves as an additional layer of protection, ensuring that the queries submitted by developers are semantically correct and align with the intended behavior of the application.
|redirect_trailing_slash |false|When this feature is enabled, platformOS automatically redirects pages with trailing forward slashes to their non-slash variants. This configuration is recommended for improving SEO and optimizing search engine indexing.


Example `app/config.yml` file with recommended values:
Expand Down

0 comments on commit 22fb88e

Please sign in to comment.