mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-10 14:22:51 +01:00
fix: comment out console logs in getTagUrl and getCategoryUrl functions
This commit is contained in:
@@ -23,12 +23,12 @@ export function getTagUrl(tag: string): string {
|
||||
// use common encoding function
|
||||
const encodedTag = encodePathSegment(tag);
|
||||
const tagUrl = `/archive/tag/${encodedTag}/`;
|
||||
console.log(`Generating URL for tag "${tag.trim()}" => "${tagUrl}"`);
|
||||
// console.log(`Generating URL for tag "${tag.trim()}" => "${tagUrl}"`);
|
||||
return url(tagUrl);
|
||||
}
|
||||
|
||||
export function getCategoryUrl(category: string): string {
|
||||
console.log(`category: ${category}`);
|
||||
// console.log(`category: ${category}`);
|
||||
if (!category) return url("/archive/category/");
|
||||
|
||||
const trimmedCategory = category.trim();
|
||||
|
||||
Reference in New Issue
Block a user