Skip to content

Bug report: m365 spo apppage set is not working when executed on root site of the tenant #5018

@MathijsVerbeeck

Description

@MathijsVerbeeck

Priority

(Low) Something is a little off

Description

The command m365 spo appage set is not working when you try to set an apppage on the root site collection of your tenant

Steps to reproduce

Execute m365 spo apppage set --webUrl https://mathijsdev2.sharepoint.com --name Test.aspx --webPartData $webPartData

Expected results

For it to update the apppage

Actual results

Error: URL is not web relative

Additional Info

I found out that the serverRelativeUrl in the requestOptions is retrieved wrongfully. It adds a double '/' character, for example:
image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions