Skip to content

Commit

Permalink
Merge pull request tildeio#347 from mixonic/skip-null-path
Browse files Browse the repository at this point in the history
Do not attempt to redirect null paths
  • Loading branch information
rwjblue committed May 19, 2015
2 parents 18e54cf + cb6363d commit 1927141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/htmlbars-runtime/lib/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ export function hostBlock(morph, env, scope, template, inverse, shadowOptions, v
}

export function handleRedirect(morph, env, scope, path, params, hash, template, inverse, visitor) {
if (!path) {
return false;
}

var redirect = env.hooks.classify(env, scope, path);
if (redirect) {
switch(redirect) {
Expand Down

0 comments on commit 1927141

Please sign in to comment.