your personal website on atproto - mirror blento.app

Merge pull request #203 from flo-bit/fix-edit-button

fix edit button

authored by

Florian and committed by
GitHub
043df1e8 74018a5f

+2 -2
+2 -2
src/lib/website/FloatingEditButton.svelte
··· 30 30 31 31 {#if isOwnPage && !isEditPage} 32 32 <div class="fixed bottom-6 left-6 z-49 hidden lg:block"> 33 - <Button size="lg" href="{page.url}/edit"> 33 + <Button size="lg" href="{page.url.pathname.replace(/\/$/, '')}/edit"> 34 34 <svg 35 35 xmlns="http://www.w3.org/2000/svg" 36 36 fill="none" ··· 74 74 </div> 75 75 {:else if showEditBlentoButton} 76 76 <div class="fixed bottom-6 left-6 z-49"> 77 - <Button size="lg" href="/{env.PUBLIC_IS_SELFHOSTED ? '' : getUserIdentifier()}/edit"> 77 + <Button size="lg" href="{env.PUBLIC_IS_SELFHOSTED ? '' : `/${getUserIdentifier()}`}/edit"> 78 78 <svg 79 79 xmlns="http://www.w3.org/2000/svg" 80 80 fill="none"