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

Document links don't open correctly in Sharepoint App (iOS) #334

Closed
bernhardk4t opened this issue Jun 23, 2020 · 3 comments
Closed

Document links don't open correctly in Sharepoint App (iOS) #334

bernhardk4t opened this issue Jun 23, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@bernhardk4t
Copy link

Version used
3.13

Describe the bug
The links to the files in search result don't work in the iOS SharePoint App. A link in the webpart looks like this:

https://demo.sharepoint.com/sites/knowledge/Documents/?id=/sites/knowledge/Documents/testdocument.docx&parent=/sites/knowledge/Documents

If I open this link from the iOS App it will show the files/folders in the library "Documents"

To reproduce

  • Add a page with the search result webpart
  • configure the webpart so it will show documents in the result
  • open SharePoint App on iPhone/iPad
  • open page with search result webpart
  • click on document link
  • the link opens the library

Expected behavior
I would expect that the Word/Excel/... file is opened directly

@wobba wobba added the enhancement New feature or request label Jun 23, 2020
@abates100
Copy link

This should be re-evaluated as a bug as the same issue is currently occurring in browser results parts also in 3.13

@wobba
Copy link
Collaborator

wobba commented Jun 25, 2020

See #343 for possible work around. And not a bug as I never considered mobile when implementing the current solution. So I'll keep it tagged as an enhancement. 😉 If it fails for documents in web browser, please provide details. The logic should be similar to OOB Microsoft Search behavior.

wobba added a commit that referenced this issue Jun 25, 2020
@wobba
Copy link
Collaborator

wobba commented Jun 25, 2020

Added a check on userAgent, and if detecting mobile it will use the direct URL and not SPO preview URL. Included in the 3.14.1 release.

@wobba wobba closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants