fix: comment out console logs in getTagUrl and getCategoryUrl functions
This commit is contained in:
parent
798c3cfed6
commit
4fbe55a0ba
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue