Skip to content

Commit

Permalink
6.1.2 - Release Candidate
Browse files Browse the repository at this point in the history
[Router]
 - when route passed to Router.navigate() starts with 'http' we do a redirect via window.location.href
 - this way routes are treated just like beforeRoute filter returns.
  • Loading branch information
monokee committed Oct 29, 2020
1 parent d751de6 commit f697052
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build/cue.js
Original file line number Diff line number Diff line change
Expand Up @@ -1927,6 +1927,10 @@ const Router = {

navigate(route, options = {}) {

if (route.lastIndexOf('http', 0) === 0) {
return window.location.href = route;
}

const { hash, query, rel } = getRouteParts(route);

options = Object.assign({}, DEFAULT_TRIGGER_OPTIONS, options);
Expand Down
Loading

0 comments on commit f697052

Please sign in to comment.