From b80a83225621d1442685c4cae02b20147e52e75b Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Tue, 23 Mar 2021 18:10:58 +0100 Subject: [PATCH] Login - add trailing slash to api_endpoint url ref #9 --- src/Login.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Login.svelte b/src/Login.svelte index 89cf4b5..2d74ac6 100644 --- a/src/Login.svelte +++ b/src/Login.svelte @@ -138,6 +138,9 @@ class="flex flex-col pt-3 md:pt-8" onsubmit="event.preventDefault();" on:submit={() => { + if (api_endpoint_input.substr(-1) !== "/") { + api_endpoint_input = api_endpoint_input + "/"; + } api_endpoint.set(api_endpoint_input); }} >