Having trouble with very small modernization task after on-prem to online conversion
IMPORTANT EDIT: Looks like I originally misidentified the problem. I thought that I had completed a successful migration and then needed to convert my pages from Classic to Modern in order to correct a problem. The actual problem deals with scripting (whether it is on or off at the time of the migration from on-prem to 365.) I believe I still have a modernization task ahead of me, but the problem that I had when I made this post (being prompted to download the .aspx file instead of opening the Wiki page) is a *scripting* problem and not a Classic vs. Modern problem.
**Original Post**
TL;DR: What is the URL to provide to a script so that the script will "see' all the pages of a Wiki and not just the "Home.aspx" page?
I am not a full-time SP admin... I'm a generalist. We recently used the Migration Tool to convert our small 2019 server contents over to 365. We really only have one list/collection/site that we use and it's a Wiki used as an IT knowledgebase. The migration appears to have worked perfectly, and we could initially see and access all our Wiki content. Then a day or so later our Wiki pages won't open (they prompt for downloading the .aspx file instead). I have seen suggestions about enabling scripting, but then that seems to have been deprecated or removed (EDIT: or possibly just seems like a bad idea) , and it feels like the better answer is to transform our migrated pages (which are apparently Classic pages) to be Modern pages. That's what I am trying to do.
I think my current issue is something silly that hopefully you can help me get past. After that I may run into something else, but I have this roadblock right now.
What I've done:
* Reviewed the [Transform c;lassic pages to modern pages](https://learn.microsoft.com/en-us/sharepoint/dev/transform/modernize-userinterface-site-pages) article. * Opened Powershell and installed the needed modules. * Copied the code from the [Transforming to modern site pages using PowerShell](https://learn.microsoft.com/en-us/sharepoint/dev/transform/modernize-userinterface-site-pages-powershell) page into a .ps1 script file. * Ran a Connect command, then ran the script, * Supplied the URL to the script.
The output I get is this:
>`Ensure the modern page feature is enabled...`
>`Modernizing wiki and web part pages...`
>`Pages are fetched, let's start the modernization...`
>**Page Home.aspx is modern, no need to modernize it again**
>`Writing the conversion log file...`
The bolded line is the one I believe is indicative of something I'm doing incorrectly -- I'm guessing it's in the URL that I'm supplying to the script. I don't know the proper URL to provide in order for it to see all our Wiki pages. Can you offer a suggestion? Tell me what I need to tell you in order for you to have a good suggestion.
In case it helps, our Wiki is at this URL:
https://<org/tenant name>.sharepoint.com/sg
EDIT: correcting a typo; added TL;DR