Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
fix(search): route to native /search instead of 404 /search/videos and cleanup error mascot (v1.4.21)
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
|
||||
// Immediate URL rewrite: redirect legacy /search/videos to /search
|
||||
if (typeof window !== 'undefined' && window.location) {
|
||||
if (window.location.pathname === '/search/videos' || window.location.pathname.startsWith('/search/videos/')) {
|
||||
var targetSearch = window.location.search || '';
|
||||
window.location.replace('/search' + targetSearch);
|
||||
}
|
||||
}
|
||||
try {
|
||||
(function () {
|
||||
if (window.__YAKTUBE_ENGINE_LOADED__) return;
|
||||
@@ -1626,6 +1634,18 @@ try {
|
||||
}
|
||||
|
||||
function checkAndInjectSearchResults() {
|
||||
// Clean up stray 404 error mascot pages if on search
|
||||
try {
|
||||
var errPages = document.querySelectorAll('my-error-page');
|
||||
errPages.forEach(function(ep) { ep.remove(); });
|
||||
} catch (e) {}
|
||||
|
||||
// Instant URL fixer: redirect legacy /search/videos to native /search
|
||||
if (window.location.pathname === '/search/videos' || window.location.pathname.startsWith('/search/videos/')) {
|
||||
window.location.replace('/search' + window.location.search);
|
||||
return;
|
||||
}
|
||||
|
||||
var url = new URL(window.location.href);
|
||||
var searchParam = url.searchParams.get('search');
|
||||
|
||||
@@ -2126,7 +2146,7 @@ try {
|
||||
saveRecentSearch(q);
|
||||
announce('"' + q + '" için arama yapılıyor...', true);
|
||||
closeFullSearchModal();
|
||||
window.location.href = '/search/videos?search=' + encodeURIComponent(q);
|
||||
window.location.href = '/search?search=' + encodeURIComponent(q);
|
||||
}
|
||||
}
|
||||
window.__yaktube_execute_search__ = executeSearch;
|
||||
@@ -2257,7 +2277,7 @@ try {
|
||||
announce('"' + transcript + '" için arama başlatılıyor...', true);
|
||||
setTimeout(function () {
|
||||
closeFullSearchModal();
|
||||
window.location.href = '/search/videos?search=' + encodeURIComponent(transcript);
|
||||
window.location.href = '/search?search=' + encodeURIComponent(transcript);
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user