Skip to content

Fix redirect on an application load#868

Merged
agubler merged 4 commits intodojo:masterfrom
agubler:fix-redirect-on-load
Dec 2, 2020
Merged

Fix redirect on an application load#868
agubler merged 4 commits intodojo:masterfrom
agubler:fix-redirect-on-load

Conversation

@agubler
Copy link
Copy Markdown
Member

@agubler agubler commented Dec 2, 2020

Type: bug

The following has been addressed in the PR:

Description:

For redirecting on application load the router needs to make sure the history manager instance is set before processing the initial path in case it requires a redirect (which needs the history instance).

This is breaking as it requires introducing a "start" function to the history managers.

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented Dec 2, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8a93efa:

Sandbox Source
dojo/dojo-codesandbox-template Configuration

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 2, 2020

Codecov Report

Merging #868 (8a93efa) into master (861eeda) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #868   +/-   ##
=======================================
  Coverage   94.73%   94.73%           
=======================================
  Files         127      127           
  Lines        8104     8116   +12     
  Branches     1892     1893    +1     
=======================================
+ Hits         7677     7689   +12     
  Misses        427      427           
Impacted Files Coverage Δ
src/routing/Router.ts 100.00% <100.00%> (ø)
src/routing/history/HashHistory.ts 100.00% <100.00%> (ø)
src/routing/history/MemoryHistory.ts 100.00% <100.00%> (ø)
src/routing/history/StateHistory.ts 98.00% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6c28bb...8a93efa. Read the comment docs.

@agubler agubler merged commit ac95d35 into dojo:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants