Remove .html from routes
This commit is contained in:
@@ -12,14 +12,14 @@ function handleConnectionResult(page, result) {
|
||||
case ConnectionState.SignedIn: {
|
||||
const apiClient = result.ApiClient;
|
||||
Dashboard.onServerChanged(apiClient.getCurrentUserId(), apiClient.accessToken(), apiClient);
|
||||
Dashboard.navigate('home.html');
|
||||
Dashboard.navigate('home');
|
||||
break;
|
||||
}
|
||||
case ConnectionState.ServerSignIn:
|
||||
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id, false, 'none');
|
||||
Dashboard.navigate('login?serverid=' + result.Servers[0].Id, false, 'none');
|
||||
break;
|
||||
case ConnectionState.ServerSelection:
|
||||
Dashboard.navigate('selectserver.html', false, 'none');
|
||||
Dashboard.navigate('selectserver', false, 'none');
|
||||
break;
|
||||
case ConnectionState.ServerUpdateNeeded:
|
||||
Dashboard.alert({
|
||||
|
||||
@@ -30,7 +30,7 @@ function processForgotPasswordResult(result) {
|
||||
message: msg,
|
||||
title: globalize.translate('ButtonForgotPassword'),
|
||||
callback: function () {
|
||||
Dashboard.navigate('forgotpasswordpin.html');
|
||||
Dashboard.navigate('forgotpasswordpin');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ function authenticateQuickConnect(apiClient, targetUrl) {
|
||||
|
||||
function onLoginSuccessful(id, accessToken, apiClient, url) {
|
||||
Dashboard.onServerChanged(id, accessToken, apiClient);
|
||||
Dashboard.navigate(url || 'home.html');
|
||||
Dashboard.navigate(url || 'home');
|
||||
}
|
||||
|
||||
function showManualForm(context, showCancel, focusPassword) {
|
||||
@@ -201,7 +201,7 @@ export default function (view, params) {
|
||||
}
|
||||
}
|
||||
|
||||
return '/home.html';
|
||||
return '/home';
|
||||
}
|
||||
|
||||
function showVisualForm() {
|
||||
@@ -243,7 +243,7 @@ export default function (view, params) {
|
||||
return false;
|
||||
});
|
||||
view.querySelector('.btnForgotPassword').addEventListener('click', function () {
|
||||
Dashboard.navigate('forgotpassword.html');
|
||||
Dashboard.navigate('forgotpassword');
|
||||
});
|
||||
view.querySelector('.btnCancel').addEventListener('click', showVisualForm);
|
||||
view.querySelector('.btnQuick').addEventListener('click', function () {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="padded-top padded-left padded-right flex flex-shrink-zero justify-content-center verticalSection flex-wrap-wrap margin-auto-x">
|
||||
<a is="emby-linkbutton" href="#/addserver.html" class="raised cancel btnAddServer flex-shrink-zero" style="margin: .25em;">
|
||||
<a is="emby-linkbutton" href="#/addserver" class="raised cancel btnAddServer flex-shrink-zero" style="margin: .25em;">
|
||||
<span>${ButtonAddServer}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -115,12 +115,12 @@ export default function (view, params) {
|
||||
switch (result.State) {
|
||||
case ConnectionState.SignedIn:
|
||||
Dashboard.onServerChanged(apiClient.getCurrentUserId(), apiClient.accessToken(), apiClient);
|
||||
Dashboard.navigate('home.html');
|
||||
Dashboard.navigate('home');
|
||||
break;
|
||||
|
||||
case ConnectionState.ServerSignIn:
|
||||
Dashboard.onServerChanged(null, null, apiClient);
|
||||
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id);
|
||||
Dashboard.navigate('login?serverid=' + result.Servers[0].Id);
|
||||
break;
|
||||
|
||||
case ConnectionState.ServerUpdateNeeded:
|
||||
|
||||
Reference in New Issue
Block a user