Setup redirect from /mining/blocks to /blocks - Update router links
This commit is contained in:
		
							parent
							
								
									8db440f164
								
							
						
					
					
						commit
						ffcfa4a659
					
				@ -34,6 +34,11 @@ let routes: Routes = [
 | 
			
		||||
        path: '',
 | 
			
		||||
        component: MasterPageComponent,
 | 
			
		||||
        children: [
 | 
			
		||||
          {
 | 
			
		||||
            path: 'mining/blocks',
 | 
			
		||||
            redirectTo: 'blocks',
 | 
			
		||||
            pathMatch: 'full'
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            path: 'tx/push',
 | 
			
		||||
            component: PushTransactionComponent,
 | 
			
		||||
@ -110,6 +115,11 @@ let routes: Routes = [
 | 
			
		||||
  {
 | 
			
		||||
    path: 'signet',
 | 
			
		||||
    children: [
 | 
			
		||||
      {
 | 
			
		||||
        path: 'mining/blocks',
 | 
			
		||||
        redirectTo: 'blocks',
 | 
			
		||||
        pathMatch: 'full'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        path: '',
 | 
			
		||||
        pathMatch: 'full',
 | 
			
		||||
@ -201,6 +211,11 @@ let routes: Routes = [
 | 
			
		||||
    path: '',
 | 
			
		||||
    component: MasterPageComponent,
 | 
			
		||||
    children: [
 | 
			
		||||
      {
 | 
			
		||||
        path: 'mining/blocks',
 | 
			
		||||
        redirectTo: 'blocks',
 | 
			
		||||
        pathMatch: 'full'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        path: 'tx/push',
 | 
			
		||||
        component: PushTransactionComponent,
 | 
			
		||||
 | 
			
		||||
@ -51,7 +51,7 @@
 | 
			
		||||
        <div class="card-body">
 | 
			
		||||
          <h5 class="card-title" i18n="dashboard.latest-blocks">Latest blocks</h5>
 | 
			
		||||
          <app-blocks-list [widget]=true></app-blocks-list>
 | 
			
		||||
          <div><a [routerLink]="['/mining/blocks' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
 | 
			
		||||
          <div><a [routerLink]="['/blocks' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
@ -136,7 +136,7 @@
 | 
			
		||||
                </tr>
 | 
			
		||||
              </tbody>
 | 
			
		||||
            </table>
 | 
			
		||||
            <div class=""><a href="" [routerLink]="[(stateService.env.MINING_DASHBOARD ? '/mining/blocks' : '/blocks') | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
 | 
			
		||||
            <div class=""><a href="" [routerLink]="['/blocks' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user