App Base Path not added to script path for Menu Bar


I am using  the menu bar (SfMenu) component in a Blazor Web Assembly app,  and I am currently testing deployment to a sub app / sub folder of a main web url.    

When I do this, the app starts ok but no menu is displayed. I have also reproduced this problem in development by setting my environment up to use the same sub app in the development web server path.

The attached image of the web console debug output shows what is happening. It appears that the app base path ('adminportal') is not added as part of the base url for this call:

GEThttps://localhost:44308/_content/Syncfusion.Blazor/scripts/navigationsbase-20233e.min.js
[HTTP/2 404 Not Found 7ms]


The call immediately before it is ok though:

GEThttps://localhost:44308/adminportal/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js
[HTTP/1.1 200 OK 0ms]

I have set the base path in index.html:  <base rel='nofollow' href="/adminportal/" /> . as per the Blazor deployment documentation.

Please help!

Thanks




Attachment: output_9b35a088.zip

3 Replies 1 reply marked as answer

IT InSite Technology November 25, 2020 05:46 PM UTC


I have attached another console output from the app running on a production (staging) server.

As you can see, other Syncfusion components appear to exhibit this phenomenon.

What am I doing wrong?



Attachment: output2_44ed534e.zip


IT InSite Technology November 26, 2020 10:07 AM UTC

I've fixed it.

I was using Syncfusion.Blazor version 18.3.0.47.

Updated to 18.3.0.51 and everything works perfectly.

Hope this helps someone.


Marked as answer

MK Mohan Kumar Ramasamy Syncfusion Team November 26, 2020 11:31 AM UTC

Hi InSite,   
 
Thanks for the update.  
 
We are happy to hear that your issue has been resolved. Please feel free to contact us if you need any further assistance on this. 
 
Regards, 
Mohan kumar R 


Loader.
Up arrow icon