bugfix: menu code did not properly handle module paths on non-top-level pages
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -59,7 +59,7 @@ onMount(fetchModules);
|
||||
</form>
|
||||
<button class="symbol" onclick={e => expand = !expand}> </button>
|
||||
{#each modules as module,i}
|
||||
<a href={module.module} {onclick} class={module.class}>{@html t(module.title)}</a>
|
||||
<a href={module.module.includes('://') ? modules.module : '/'+modules.module} {onclick} class={module.class}>{@html t(module.title)}</a>
|
||||
{/each}
|
||||
{#if user.id == 2}
|
||||
<a href="https://svelte.dev/tutorial/svelte/state" target="_blank">{t('tutorial')}</a>
|
||||
|
||||
Reference in New Issue
Block a user