Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Update URL when anchor toggle is used
Alexis Sellier committed 4 years ago
commit 8ecc15e808394328aaaa32d468ca1749c87087af
parent b88d6c9c65480c6f660302ee1c6e3395122b97b5
1 file changed +4 -2
modified src/base/projects/View.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
-
  import { Link } from 'svelte-routing';
+
  import { navigate, Link } from 'svelte-routing';
  import type { Config } from '@app/config';
  import * as proj from '@app/project';
  import Loading from '@app/Loading.svelte';
@@ -62,8 +62,10 @@
  }

  const back = () => window.history.back();
-
  // Reacts to change to the used commit
+
  // React to changes to the project commit. We have to manually
+
  // set the URL as well, to match the current commit.
  $: projectRoot = proj.path({ urn, user, org, commit });
+
  $: navigate(proj.path({ urn, user, org, commit, path }));
</script>

<style>