Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Copy Path Extension on Custom Domain Site #5396

Open
2 of 9 tasks
NaiduKumapatla opened this issue Feb 21, 2025 · 5 comments
Open
2 of 9 tasks

Issue with Copy Path Extension on Custom Domain Site #5396

NaiduKumapatla opened this issue Feb 21, 2025 · 5 comments
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@NaiduKumapatla
Copy link

Disclaimer

Yes

Sample

SPFx version upgraded to version 1.20.0

Contributor(s)

Ok

What happened?

Copy Path structure is broken

Steps to reproduce

1.To be tried on a domain site.
2.
3.

Expected behavior

Hi Harmindar,

Thank you for sharing this solution! I really appreciate the simplicity and how it enhances the user experience. It works perfectly for all sites with the standard URL structure (domain.com/sites/xyz).

However, I encountered an issue when using the extension on a site with a custom domain. Instead of copying the full file path, the copied output appears as: https:/Media Library/Brand Guidelines/Marketing Disclaimers Guide.pdf

Whereas, the expected result should be: https://customdomain.com/Media Library/Brand Guidelines/Marketing Disclaimers Guide.pdf

It seems that the site’s structure is affecting how the path is retrieved. I would really appreciate your guidance on how to resolve this.

Thanks & Regards,
Naidu

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • Internet Explorer
  • Microsoft Edge
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

What version of Node.js is currently installed on your workstation?

V18

What version of Node.js is required by the sample?

V18

Paste the results of SPFx doctor

It's related to the method it's copied

Additional environment details

No response

@NaiduKumapatla NaiduKumapatla added the type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs label Feb 21, 2025
@a1mery
Copy link
Contributor

a1mery commented Feb 25, 2025

Hello @NaiduKumapatla,

Could you please share the name of the sample that is affected by this issue?

@NaiduKumapatla
Copy link
Author

Hello @a1mery & @HarminderSethi,

This is for samples/react-utility-extensions.
Copy Path and Copy Name List view command set extensions

Thanks & Regards
Naidu

@HarminderSethi
Copy link
Contributor

@NaiduKumapatla Thanks for appreciating the solution and finding the bug. I have fixed this and for the time being you can download it from https://github.com/HarminderSethi/SPFx-Samples/tree/main/react-utility-extensions untill it is available in PnP sample gallery.

@HarminderSethi
Copy link
Contributor

@a1mery this can be closed as pull request is created for the fix pnp/sp-dev-fx-extensions#1473

@NaiduKumapatla
Copy link
Author

@HarminderSethi Thanks for your prompt response and fixing the issue, much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Projects
None yet
Development

No branches or pull requests

3 participants