SHA256
UI: переход на history-router без # и короткие ссылки тредов
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user