Skip to content

Fix double-slash in category URL rewrite and missing trailing slash in BuildUrl#1634

Open
mt0321 wants to merge 1 commit intoYAFNET:masterfrom
mt0321:fix/category-url-3
Open

Fix double-slash in category URL rewrite and missing trailing slash in BuildUrl#1634
mt0321 wants to merge 1 commit intoYAFNET:masterfrom
mt0321:fix/category-url-3

Conversation

@mt0321
Copy link
Copy Markdown
Contributor

@mt0321 mt0321 commented Apr 1, 2026

AddCategoryRules produced a double slash (e.g. forums//index/) because areaSegment ended with '/' and GetPageName() returns a leading '/'. Use CombineWith to safely join path segments.

BuildUrl silently dropped the trailing slash because AppendTrailingSlash() was called without assigning its return value.

…n BuildUrl

AddCategoryRules produced a double slash (e.g. forums//index/) because
areaSegment ended with '/' and GetPageName() returns a leading '/'.
Use CombineWith to safely join path segments.

BuildUrl silently dropped the trailing slash because AppendTrailingSlash()
was called without assigning its return value.
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.

1 participant