UI: переход на history-router без # и короткие ссылки тредов

This commit is contained in:
AidarKC
2026-05-19 10:15:15 +03:00
parent 3a0899bcfe
commit db2d9a666b
9 changed files with 61 additions and 28 deletions
+3 -3
View File
@@ -1167,9 +1167,9 @@ export function render({ navigate, route }) {
const rerenderList = () => {
try {
const expectedHash = `#/channels-list/${listState.activeTab}`;
if (window.location.hash !== expectedHash) {
window.history.replaceState({}, '', expectedHash);
const expectedPath = `/channels-list/${listState.activeTab}`;
if (window.location.pathname !== expectedPath) {
window.history.replaceState({}, '', expectedPath);
}
} catch {
// ignore history errors