Skip to content
New issue

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

Handle routing exceptions during news and event URL generation #6854

Merged

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Feb 4, 2024

This is a first draft on how #6797 could be fixed - in this case for news as an example. @aschempp is this what you had in mind?

@fritzmg
Copy link
Contributor Author

fritzmg commented Feb 6, 2024

As discussed today we should instead catch the routing's ExceptionsInterface and also do not fill the more template variable with the HTML content of a link in case the URL could not be generated.

@fritzmg fritzmg changed the title Adjust content URL generation Handle routing exception during news and event URL generation Feb 8, 2024
@fritzmg fritzmg marked this pull request as ready for review February 8, 2024 17:10
@fritzmg fritzmg requested a review from leofeyer February 8, 2024 17:10
@fritzmg
Copy link
Contributor Author

fritzmg commented Feb 8, 2024

FAQ and newsletters already handled routing exceptions during URL generation (and fall back to the current request URL), so I haven't touched those.

@leofeyer leofeyer changed the title Handle routing exception during news and event URL generation Handle routing exceptions during news and event URL generation Feb 16, 2024
@leofeyer leofeyer merged commit a88366d into contao:5.3 Feb 16, 2024
17 checks passed
@leofeyer
Copy link
Member

Thank you @fritzmg.

@fritzmg fritzmg deleted the fix-news-events-faq-content-url-generators branch February 26, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants