Commit db7e1138 authored by HgO's avatar HgO
Browse files

Merge branch '11-fix-404-error' into 'develop'

Fix 404 error on static page

See merge request Neutrinet/neutrinet_ynh!15
parents 68e0ade7 c6324f2d
location PATHTOCHANGE/ {
location PATHTOCHANGE {
alias ALIASTOCHANGE;
index index.html;
}
......@@ -42,6 +42,8 @@ fi
# Normalize the url path syntax
path_url=$(ynh_normalize_url_path $path_url)
# Trim trailing slashes
path_url=$(sed 's@*/$@@' <<< $path_url)
# Check web path availability
if ! ynh_webpath_available $domain $path_url
......
......@@ -63,6 +63,12 @@ if [[ -z $path_url ]]; then
fi
fi
if [[ $path_url == */ ]]; then
# Trim trailing slashes
path_url=$(sed 's@/*$@@' <<< $path_url)
ynh_app_setting_set $app path_url $path_url
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment