@samitouri / QOSami-HFS / commits / 4e7f53bc

fix: navigation broken once you enter a web folder #472

Massimo Melina committed Feb 13, 2024 at 10:48 UTC 4e7f53bc9f1e36a935d50c96d3114a82d72befa4
1 file changed +2 -1
frontend/src/BrowseFiles.ts
+2 -1
@@ -221,7 +221,8 @@ const Entry = memo(({ entry, midnight, separator }: EntryProps) => {
221 }),
222 h('span', { className: 'link-wrapper' }, // container to handle mouse over for both children
223 ...isFolder || entry.web ? [ // internal navigation, use Link component
224 - h(Link, { to: uri, ...ariaProps }, ico, entry.n.slice(0, -1)), // don't use name, as we want to include whole path in case of search
224 + h(Link, { to: uri, reloadDocument: entry.web, ...ariaProps }, // without reloadDocument, once you enter the web page, the back button won't bring you back to the frontend
225 + ico, entry.n.slice(0, -1)), // don't use name, as we want to include whole path in case of search
226 // popup button is here to be able to detect link-wrapper:hover
227 file_menu_on_link && !showingButton && h('button', {
228 className: 'popup-menu-button',