Skip to content

Support replace for the router and history managers#869

Merged
agubler merged 1 commit intodojo:masterfrom
agubler:redirect-should-replace
Dec 3, 2020
Merged

Support replace for the router and history managers#869
agubler merged 1 commit intodojo:masterfrom
agubler:redirect-should-replace

Conversation

@agubler
Copy link
Member

@agubler agubler commented Dec 3, 2020

Type: bug

The following has been addressed in the PR:

Description:

For redirect the new route should replace the current one so that the browser navigation behaves as expected. To support a replace feature has been added to both the router and the history managers.


describe('redirect', () => {
it('should redirect from a default route', () => {
debugger;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 3, 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 18929b5:

Sandbox Source
dojo/dojo-codesandbox-template Configuration

@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #869 (18929b5) into master (5913b7b) will decrease coverage by 0.01%.
The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #869      +/-   ##
==========================================
- Coverage   94.73%   94.72%   -0.02%     
==========================================
  Files         127      127              
  Lines        8116     8130      +14     
  Branches     1893     1894       +1     
==========================================
+ Hits         7689     7701      +12     
- Misses        427      429       +2     
Impacted Files Coverage Δ
src/routing/Router.ts 99.54% <50.00%> (-0.46%) ⬇️
src/routing/history/StateHistory.ts 96.42% <85.71%> (-1.58%) ⬇️
src/routing/history/HashHistory.ts 100.00% <100.00%> (ø)
src/routing/history/MemoryHistory.ts 100.00% <100.00%> (ø)

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 5913b7b...18929b5. Read the comment docs.

@agubler agubler merged commit 9bbcff9 into dojo:master Dec 3, 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