Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
275
Merge Requests
35
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
5c9218c9
Commit
5c9218c9
authored
3 hours ago
by
Mark Harding
Browse files
Options
Download
(fix): if not a pro site then signal redirect to root
parent
eff0477f
master
chore/local-infra-tweaks
feat/hide-share-buttons
fix/redirect-non-pro-to-root
No related merge requests found
Pipeline
#117943305
passed with stages
in 14 minutes and 33 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Core/Config/Exported.php
View file @
5c9218c9
...
...
@@ -123,6 +123,9 @@ class Exported
if
(
$pro
=
$this
->
proDomain
->
lookup
(
$_SERVER
[
'HTTP_HOST'
]
??
null
))
{
$exported
[
'pro'
]
=
$pro
;
}
elseif
(
!
$this
->
proDomain
->
isRoot
(
$_SERVER
[
'HTTP_HOST'
]
??
null
))
{
// If not a pro site and not root then tell frontend to redirect
$exported
[
'redirect_to_root_on_init'
]
=
true
;
}
return
$exported
;
...
...
This diff is collapsed.
containers/php-runners/Dockerfile
View file @
5c9218c9
...
...
@@ -6,7 +6,7 @@ ADD --chown=www-data . /var/www/Minds/engine
# Remove the local settings file (if it exists)
RUN
rm
-f
/var/www/Minds/engine/settings.php
#
RUN rm -f /var/www/Minds/engine/settings.php
# Setup our supervisor service
...
...
This diff is collapsed.
Please
register
or
sign in
to comment