-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added php fallbacks for vue router rotes. In the event of a page refr…
…esh this will redirect users back to the app's launch page as opposed to a 404 from nginx.
- Loading branch information
Ian
committed
Oct 11, 2024
1 parent
39e04a0
commit 67566de
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
require_once "root.php"; | ||
require_once "resources/require.php"; | ||
require_once "resources/check_auth.php"; | ||
require_once "resources/header.php"; | ||
require_once "resources/paging.php"; | ||
|
||
if(!$_SESSION['user']['extension']) { | ||
echo "no extensions assigned to user"; | ||
include_once "footer.php"; | ||
die(); | ||
} | ||
|
||
if(sizeof($_SESSION['user']['extension']) == 1) { | ||
echo "<script type='text/javascript'>window.location.href = 'threadlist.php?extension_uuid=".$_SESSION['user']['extension'][0]['extension_uuid']."'; </script>"; | ||
} | ||
else{ | ||
echo "<script type='text/javascript'>window.location.href = 'index.php'; </script>"; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
require_once "root.php"; | ||
require_once "resources/require.php"; | ||
require_once "resources/check_auth.php"; | ||
require_once "resources/header.php"; | ||
require_once "resources/paging.php"; | ||
|
||
if(!$_SESSION['user']['extension']) { | ||
echo "no extensions assigned to user"; | ||
include_once "footer.php"; | ||
die(); | ||
} | ||
|
||
if(sizeof($_SESSION['user']['extension']) == 1) { | ||
echo "<script type='text/javascript'>window.location.href = 'threadlist.php?extension_uuid=".$_SESSION['user']['extension'][0]['extension_uuid']."'; </script>"; | ||
} | ||
else{ | ||
echo "<script type='text/javascript'>window.location.href = 'index.php'; </script>"; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
require_once "root.php"; | ||
require_once "resources/require.php"; | ||
require_once "resources/check_auth.php"; | ||
require_once "resources/header.php"; | ||
require_once "resources/paging.php"; | ||
|
||
if(!$_SESSION['user']['extension']) { | ||
echo "no extensions assigned to user"; | ||
include_once "footer.php"; | ||
die(); | ||
} | ||
|
||
if(sizeof($_SESSION['user']['extension']) == 1) { | ||
echo "<script type='text/javascript'>window.location.href = 'threadlist.php?extension_uuid=".$_SESSION['user']['extension'][0]['extension_uuid']."'; </script>"; | ||
} | ||
else{ | ||
echo "<script type='text/javascript'>window.location.href = 'index.php'; </script>"; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
require_once "root.php"; | ||
require_once "resources/require.php"; | ||
require_once "resources/check_auth.php"; | ||
require_once "resources/header.php"; | ||
require_once "resources/paging.php"; | ||
|
||
if(!$_SESSION['user']['extension']) { | ||
echo "no extensions assigned to user"; | ||
include_once "footer.php"; | ||
die(); | ||
} | ||
|
||
if(sizeof($_SESSION['user']['extension']) == 1) { | ||
echo "<script type='text/javascript'>window.location.href = 'threadlist.php?extension_uuid=".$_SESSION['user']['extension'][0]['extension_uuid']."'; </script>"; | ||
} | ||
else{ | ||
echo "<script type='text/javascript'>window.location.href = 'index.php'; </script>"; | ||
|
||
} |