cancel
Showing results for 
Search instead for 
Did you mean: 

Patterns doesn't come up in the URL in Fiori LP

zayidu
Participant
0 Kudos

Hello Experts,

In the Fiori Launchpad, in one of the UI5 Application, the user wants to bookmark the pages in the app, the issue is that the pattern that is matched in the application doesn't come up in the URL but the functions and navigations are working perfectly. But the patterns were coming up in the URL when the app was executed standalone means, not in the launchpad. Can anyone help on this issue:

When executed as a standalone app the pattern MATCHED # value shows up:

When executed in Fiori LP the pattern MATCHED # value DOES NOT show up: I have also maintained Semantic Navigation Checked in Catalog Config of the tile.

Thanks & Regards,

Zayid

Accepted Solutions (0)

Answers (1)

Answers (1)

TheGokke
Active Participant
0 Kudos

what is the code to do the actual navigation? Because there is a difference between calling the route or calling the pattern if I'm not mistaking (one doesn't change the pattern)

zayidu
Participant
0 Kudos

Hello Andy,

Thanks for being prompt. Below is my code for navigation,

onNavigateToDetail: function(oEvent) {
                
                    this.oRouter.navTo("detail", {
                        monthID: monthID,
                        title: title
                    });
                    var oItem = oEvent.getSource();
                    oItem.setNavigated(true);
                    this.getOwnerComponent().BusyDialogGlobal && this.getOwnerComponent().BusyDialogGlobal.open();
 }

On Pattern Matched CB in "detail" view, I can access the monthID and title as well, But pattern isn't coming up in the URL to bookmark the page.

Thanks,
TheGokke
Active Participant
0 Kudos

That seems like a normal route call. Can you show me the manifest (router part)

zayidu
Participant
0 Kudos

Hello Andy,

Below is the Manifest Code:

"routing": {
            "config": {
                "routerClass": "sap.m.routing.Router",
                "viewType": "XML",
                "viewPath": "application.xxx.view",
                "controlId": "app",
                "controlAggregation": "pages",
                "transition": "slide",
                "bypassed": {
                    "target": [
                        "notFound"
                    ]
                },
                "async": true
            },
            "routes": [
                {
                    "name": "appHome",
                    "pattern": "",
                    "titleTarget": "",
                    "greedy": false,
                    "target": "home"
                },
                {
                    "pattern": "detail/{monthID}/:title:",
                    "name": "detail",
                    "target": "detail"
                }
            ],
            "targets": {
                "home": {
                    "viewType": "XML",
                    "transition": "slide",
                    "clearAggregation": true,
                    "viewName": "Home",
                    "viewLevel": 1
                },
                "detail": {
                    "viewType": "XML",
                    "transition": "slide",
                    "clearAggregation": true,
                    "viewName": "Detail",
                    "viewLevel": 2
                },
                "notFound": {
                    "viewName": "NotFound",
                    "transition": "show"
                }
            }
        }

Thanks,

Zayid

TheGokke
Active Participant
0 Kudos

Looks ok too, can you check the F12 in the logs if there is something else that does another route after that one? Or do a search on navto to see all code that triggers navigation?