Skip to content

Commit

Permalink
[Core] Fix sitemap link in robots.txt when sitemap not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Jan 28, 2022
1 parent 779be3d commit 07d5d57
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/conversation/src/Resources/config/services.yaml
Expand Up @@ -42,12 +42,6 @@ services:
tags:
- { name: doctrine.orm.entity_listener, entity: "%pw.conversation.entity_message%", event: postPersist }

pushword.conversation.notification_command:
arguments:
- '@pushword.conversation.notifier'
class: Pushword\Conversation\Command\NotificationCommand
tags: ['console.command']

# pushword.conversation.twig_extension:
# class: Pushword\Conversation\Twig\AppExtension
# tags:
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/templates/page/robots.txt.twig
Expand Up @@ -3,6 +3,8 @@ Hello :)
Sitemap: {{ app_base_url }}/sitemap.xml
{% for locale in apps.get().locales %}
{% if locale != apps.get().locale %}
{% if pages(apps.get().mainHost, ['locale', '=', locale]) %}
Sitemap: {{ app_base_url }}/{{ locale }}/sitemap.xml
{% endif %}
{% endif %}
{% endfor %}
Binary file modified packages/skeleton/var/app.db
Binary file not shown.

0 comments on commit 07d5d57

Please sign in to comment.