Skip to content

Commit

Permalink
Fix EZP-30767: Allow the developer to override the page to load on a …
Browse files Browse the repository at this point in the history
…partial URL alias path (#1437)

(cherry picked from commit ab82190)
  • Loading branch information
peterkeung authored and andrerom committed Aug 9, 2019
1 parent 432f70b commit bc92701
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/classes/ezurlaliasml.php
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,8 @@ static public function actionToUrl( $action )
break;

case 'nop':
$url = '/';
$siteINI = eZINI::instance();
$url = $siteINI->variable( 'URLTranslator', 'LoadOnPartialAliasPath' );
break;

default:
Expand Down
5 changes: 5 additions & 0 deletions settings/site.ini
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ Translation=enabled
# first part of url is defined in module.ini Modulelist, eg. 'content'
TranslatableSystemUrls=enabled

# Path to load when accessing a partial alias
# For example, when there is a redirect from /path/one/two but the user accesses /path/one
# By default this loads the homepage, but you can set it to load a 404 page for example
LoadOnPartialAliasPath=/

# Type of word separator for url aliases, can be one of:
# dash - Use a dash
# underscore - Use an underscore
Expand Down

0 comments on commit bc92701

Please sign in to comment.