Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

How to navigate to a specific page

$
0
0

(use svelte and spring-boot)I'm creating a Find ID screen.

  1. In the "Find ID screen", the user enters the account information
  2. Click the OK button to check the data to see if you actually have an account.
  3. If the data match, go to the "ID Results Screen" with the id value.

Number 3 is the problem.

goto('/login/viewId?loginId=${loginId}`)

in the same manner as aboveI put the id in the url and sent it to the result screen.But I found out that id shouldn't be exposed to url.

As you move to a specific page, the url has a parameter valueIs there any way to make it so that it doesn't expose it?

I wonder if the controller should do the redirection.

(This is the code you wrote.)

    async function findId() {        const formData = new FormData(document.getElementById('Form'));            const response = await Api.post(`/login/IdCheck`, formData); // 1. ID Check            if (response.data.resultCode == 'success') {                var loginId = response.data.findInfo.loginId;                goto(`./Id/IdDisplay?Id=${Id}`);// 2.Query String NO....    }

How to navigate to a specific page


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>