Skip to content

Commit fea51e7

Browse files
committed
MOBILE-4770 more: Decode QR scan URL before treating it
Otherwise if the parameters have encoded characters the URL won't work fine, like it happened with overview links. This is consistent with how core-link works.
1 parent b18e58f commit fea51e7

File tree

1 file changed

+2
-1
lines changed
  • src/core/features/mainmenu/pages/more

1 file changed

+2
-1
lines changed

src/core/features/mainmenu/pages/more/more.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { CoreViewer } from '@features/viewer/services/viewer';
2727
import { CoreSharedModule } from '@/core/shared.module';
2828
import { CoreMainMenuUserButtonComponent } from '../../components/user-menu-button/user-menu-button';
2929
import { CoreContentLinksHelper } from '@features/contentlinks/services/contentlinks-helper';
30+
import { CoreUrl } from '@singletons/url';
3031

3132
/**
3233
* Page that displays the more page of the app.
@@ -160,7 +161,7 @@ export default class CoreMainMenuMorePage implements OnInit, OnDestroy {
160161

161162
// Check if it's a URL.
162163
if (/^[^:]{2,}:\/\/[^ ]+$/i.test(text)) {
163-
await CoreContentLinksHelper.visitLink(text, {
164+
await CoreContentLinksHelper.visitLink(CoreUrl.decodeURI(text), {
164165
checkRoot: true,
165166
openBrowserRoot: true,
166167
});

0 commit comments

Comments
 (0)