Skip to content

Instantly share code, notes, and snippets.

@arasmussen
Created September 12, 2018 18:24
Show Gist options
  • Save arasmussen/4afe09c312b3250541d516c17af3ae0f to your computer and use it in GitHub Desktop.
Save arasmussen/4afe09c312b3250541d516c17af3ae0f to your computer and use it in GitHub Desktop.
function custom_url_rewrite_inbound(&$result, $path, $path_language) {
if (strpos($path, 'feedback/feature-requests') === 0 ||
strpos($path, 'feedback/bug-reports') === 0 ||
strpos($path, 'feedback/feedback-suggestions') === 0 ||
strpos($path, 'feedback/portfolio-reviews') === 0) {
$result = 'node/54'; return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment