pnp / pnp/pnpframework

Allow Dots in Site Title

Open
#491 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

It appears dots are not allowed in site title when creating a site using WebUI or trying to rename it either with Set-PnPSite or SharePoint Online Admin Center.
image
However, when I use New-PnPSite and specify Alias
image

There is a restriction in PnPFramework:
image
https://github.com/pnp/pnpframework/blob/29e8d01aff7899f0aa1f355f14113b2d30b90dfa/src/lib/PnP.Framework/Utilities/UrlUtility.cs#L224

Please kindly advise if you can adjust that restriction by any chance? It does not really make a lot of sense to me having such limitations for SharePoint Online Sites.

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/lib/PnP.Framework/Utilities/UrlUtility.cs around line 224 and inspect the restriction applied to site titles or aliases. Compare the behavior described for New-PnPSite with WebUI, Set-PnPSite, and SharePoint Online Admin Center; done means valid site titles containing dots are accepted without weakening unrelated URL validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.