@@ -34,27 +34,28 @@ export default class AppView {
3434
3535 /** navigate to the specified route */
3636 goTo ( route : string ) {
37- if ( this . _store . router . location . pathname !== route ) {
38- this . _store . router . push ( route ) ;
37+ const path = `${ PUBLIC_URL } ${ route } ` ;
38+ if ( this . _store . router . location . pathname !== path ) {
39+ this . _store . router . push ( path ) ;
3940 }
4041 }
4142
4243 /** Change to the Auth page */
4344 gotoAuth ( ) {
44- this . goTo ( `${ PUBLIC_URL } /` ) ;
45+ this . goTo ( `/` ) ;
4546 this . _store . log . info ( 'Go to the Auth page' ) ;
4647 }
4748
4849 /** Change to the Home page */
4950 goToHome ( ) {
50- this . goTo ( `${ PUBLIC_URL } /home` ) ;
51+ this . goTo ( `/home` ) ;
5152 this . _store . settingsStore . autoCollapseSidebar ( ) ;
5253 this . _store . log . info ( 'Go to the Home page' ) ;
5354 }
5455
5556 /** Change to the Loop page */
5657 goToLoop ( ) {
57- this . goTo ( `${ PUBLIC_URL } /loop` ) ;
58+ this . goTo ( `/loop` ) ;
5859 this . _store . settingsStore . autoCollapseSidebar ( ) ;
5960 if ( ! this . _store . settingsStore . tourAutoShown ) {
6061 this . showTour ( ) ;
@@ -65,33 +66,40 @@ export default class AppView {
6566
6667 /** Change to the History page */
6768 goToHistory ( ) {
68- this . goTo ( `${ PUBLIC_URL } /history` ) ;
69+ this . goTo ( `/history` ) ;
6970 this . _store . settingsStore . autoCollapseSidebar ( ) ;
7071 this . _store . log . info ( 'Go to the History page' ) ;
7172 }
7273
7374 /** Change to the Pool page */
7475 goToPool ( ) {
75- this . goTo ( `${ PUBLIC_URL } /pool` ) ;
76+ this . goTo ( `/pool` ) ;
7677 // always collapse the sidebar to make room for the Pool sidebar
7778 this . _store . settingsStore . sidebarVisible = false ;
7879 this . _store . log . info ( 'Go to the Pool page' ) ;
7980 }
8081
8182 /** Change to the Settings page */
8283 goToSettings ( ) {
83- this . goTo ( `${ PUBLIC_URL } /settings` ) ;
84+ this . goTo ( `/settings` ) ;
8485 this . _store . settingsStore . autoCollapseSidebar ( ) ;
8586 this . _store . log . info ( 'Go to the Settings page' ) ;
8687 }
8788
8889 /** Change to the Connect page */
8990 goToConnect ( ) {
90- this . goTo ( `${ PUBLIC_URL } /connect` ) ;
91+ this . goTo ( `/connect` ) ;
9192 this . _store . settingsStore . autoCollapseSidebar ( ) ;
9293 this . _store . log . info ( 'Go to the Connect page' ) ;
9394 }
9495
96+ /** Change to the Connect Custom page */
97+ goToConnectCustom ( ) {
98+ this . goTo ( `/connect/custom` ) ;
99+ this . _store . settingsStore . autoCollapseSidebar ( ) ;
100+ this . _store . log . info ( 'Go to the Connect Custom page' ) ;
101+ }
102+
95103 /** Toggle displaying of the Processing Loops section */
96104 toggleProcessingSwaps ( ) {
97105 this . processingSwapsVisible = ! this . processingSwapsVisible ;
@@ -178,7 +186,7 @@ export default class AppView {
178186 /** sets the selected setting to display */
179187 showSettings ( name : SettingName ) {
180188 const path = name === '' ? '' : `/${ name } ` ;
181- this . goTo ( `${ PUBLIC_URL } /settings${ path } ` ) ;
189+ this . goTo ( `/settings${ path } ` ) ;
182190 this . _store . log . info ( 'Switch to Setting screen' , name ) ;
183191 }
184192
0 commit comments