Skip to content

Conversation

@Nikola117
Copy link
Contributor

@Nikola117 Nikola117 commented Jan 17, 2025

…lling issue

fixes #104 #84 #78 #112

@sonarqubecloud
Copy link

@kaspars-ozols
Copy link
Contributor

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several valuable fixes and improvements. It makes the sitemap cache duration configurable, which is a great enhancement for flexibility. It also resolves a potential crash when processing URLs with trailing slashes and fixes a UI scrolling issue. The changes are well-implemented. I've identified one potential issue where a negative value for the cache expiration could cause an unhandled exception and have suggested a fix.

# Conflicts:
#	src/Geta.Optimizely.Sitemaps/Geta.Optimizely.Sitemaps.Views/Views/Shared/_ShellLayout.cshtml
Ensure the cache expiration time for sitemap data is always non-negative by applying a Math.Max check. This prevents potential errors caused by invalid configuration values.
@sonarqubecloud
Copy link

@kaspars-ozols kaspars-ozols merged commit a8f2c7b into master Aug 14, 2025
6 checks passed
@kaspars-ozols kaspars-ozols deleted the bugfix/small-fixes branch August 14, 2025 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AddTrailingSlash throwing exception

4 participants