@samitouri / QOSami-HFS / commits / bd8578b6

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

Massimo Melina committed Feb 13, 2024 at 10:48 UTC bd8578b6a97213bb1b9588aac57f2e9d66488616
1 file changed +2 -1
frontend/src/BrowseFiles.ts
+2 -1
@@ -227,7 +227,8 @@ const Entry = memo(({ entry, midnight, separator }: EntryProps) => {
227 }),
228 h('span', { className: 'link-wrapper' }, // container to handle mouse over for both children
229 ...isFolder || entry.web ? [ // internal navigation, use Link component
230 - 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
230 + 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
231 + ico, entry.n.slice(0, -1)), // don't use name, as we want to include whole path in case of search
232 // popup button is here to be able to detect link-wrapper:hover
233 file_menu_on_link && !showingButton && h('button', {
234 className: 'popup-menu-button',