Laravel II Route url does not work

I’m trying to make a simple button that linking to a form page. The button contains a Route code:

<a class="btn btn-primary btn-sm" href="{{ route('iku.create') }}" role="button">Tambah IKU</a>

when I hover the button, I see the url “127.0.0.1:9002/iku/create”. “iku” is the folder’s name and “create” is the php file’s name where the form page exists.

When I click the button, it doesn’t redirect to the correct page. Instead, it shows an error 127.0.0.1 refused to connect. . Also the address bar shows a message (external page) .

I’ve tried to make the button with a simple href method
<a href="iku/create">Tambah IKU</a>
and this code runs properly. Of course, this method is not the proper one I want to use.

However, this code shows different url when it is hovered. It shows,
https://9000-idx-pkrbaru-1724910462366.cluster-e3wv6awer5h7kvayyfoein2u4a.cloudworkstations.dev/iku/create

Is there something wrong with the Route or the localhost setting? or it is just a bug in Project Idx?

Hi, configure the trustproxy in app/Http/Middleware/TrustProxies.php

protected $proxies = ‘*’;

And configure your APP_URL env variable