mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-28 18:01:55 +00:00
Open dashboard links at #home anchor
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user