mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 14:52:52 +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
|
// use common encoding function
|
||||||
const encodedTag = encodePathSegment(tag);
|
const encodedTag = encodePathSegment(tag);
|
||||||
const tagUrl = `/archive/tag/${encodedTag}/`;
|
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);
|
return url(tagUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCategoryUrl(category: string): string {
|
export function getCategoryUrl(category: string): string {
|
||||||
console.log(`category: ${category}`);
|
// console.log(`category: ${category}`);
|
||||||
if (!category) return url("/archive/category/");
|
if (!category) return url("/archive/category/");
|
||||||
|
|
||||||
const trimmedCategory = category.trim();
|
const trimmedCategory = category.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user