hallo
Hallo beatovich,
Warum denkst du dass ein Page reload grundsätzlich schlecht ist?
Das denke ich nicht, ich würde allerdings meine Navigation so bauen.
Und ob das JavaScript so überhaupt funktioniert, muss auch noch getestet werden. Ich weiß nicht, ob das allgemeingültig ist, aber
location.href
lieferthttps://example.com/page.html
. Relative Links können also durchaus scheitern.
my bad.
Ich hatte da original _.filename mit
_.filename = location.pathname.match( /[^/#](?:#.)?$/ )[0];