Skip to content

Commit

Permalink
Moc#12 alias in e_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmi08 committed Jun 30, 2022
1 parent c4e2ef6 commit 7c75873
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e_url.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ function config()

// Wrapper with title or ID
$config['wrapper_id'] = array(
'alias' => 'wrapper',
// Matched against url, and if true, redirected to 'redirect' below.
'regex' => '^wrapper/(.*)$',
'regex' => '^{alias}/(.*)$',
// {wrapper_id} is substituted with database value when parsed by e107::url();
'sef' => 'wrapper/{wrapper_id}/{wrapper_name}',
'sef' => '{alias}/{wrapper_id}/{wrapper_name}',
// File-path of what to load when the regex returns true.
'redirect' => '{e_PLUGIN}wrapper/wrapper.php?$1'
);
Expand Down

0 comments on commit 7c75873

Please sign in to comment.