From 9bc2cc0d53aba115fe2be546434b853bb8ade2d7 Mon Sep 17 00:00:00 2001 From: apolopena <3060702+apolopena@users.noreply.github.com> Date: Mon, 10 May 2021 13:44:42 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20https://github.com/apolop?= =?UTF-8?q?ena/gitpod-laravel-starter/issues/130=20opening=20url=20paths?= =?UTF-8?q?=20that=20end=20in=20a=20file=20name=20gives=20a=20404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gp/bash/open-preview.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.gp/bash/open-preview.sh b/.gp/bash/open-preview.sh index ddf54ea9..7368af3c 100644 --- a/.gp/bash/open-preview.sh +++ b/.gp/bash/open-preview.sh @@ -15,14 +15,8 @@ exit 1 . .gp/bash/spinner.sh -__path= -if [[ -n $1 ]]; then - if [[ ! $1 =~ \/$ ]]; then - __path=/$1/ - else - __path=/$1 - fi -fi +__path=/$1 + __port=$(bash .gp/bash/helpers.sh get_default_server_port) if [[ $(bash .gp/bash/helpers.sh is_inited) == 0 ]]; then . .gp/bash/spinner.sh &&