Open dashboard links at #home anchor

This commit is contained in:
jelveh
2026-07-10 13:22:58 -07:00
parent cf90e775bf
commit c107c80bd8
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1309,7 +1309,7 @@ async function UIDesktop (options) {
// /settings redirects to /dashboard
//--------------------------------------------------------------------------------------
else if ( window.url_paths[0]?.toLocaleLowerCase() === 'settings' ) {
window.open('/dashboard', '_blank');
window.open('/dashboard/#home', '_blank');
}
// ---------------------------------------------
// Run apps from insta-login URL
@@ -2169,7 +2169,7 @@ $(document).on('click', '.user-options-menu-btn', async function (e) {
html: i18n('settings'),
id: 'settings',
onClick: async function () {
window.open('/dashboard', '_blank');
window.open('/dashboard/#home', '_blank');
},
},
//--------------------------------------------------
@@ -2256,7 +2256,7 @@ $(document).on('click', '.search-btn', function () {
});
$(document).on('click', '.toolbar-puter-logo', function () {
window.open('/dashboard', '_blank');
window.open('/dashboard/#home', '_blank');
});
$(document).on('click', '.user-options-create-account-btn', async function (e) {
+1 -1
View File
@@ -220,7 +220,7 @@ class UsageLimitDialog extends (globalThis.HTMLElement || Object) {
});
this.shadowRoot.querySelector('#upgrade-btn').addEventListener('click', () => {
window.open('https://puter.com/dashboard', '_blank');
window.open('https://puter.com/dashboard/#home', '_blank');
this.close();
});