OneDrive web search ignores “Current Folder” scope

galile 0 Reputation points
2026-08-18T15:48:50.2033333+00:00

I use OneDrive for Business in a web browser. When I open a specific folder, select “Current Folder” in the search scope, and then search for a file, OneDrive still returns results from other folders that I have access to.

For example:

I am currently in Folder A.

I select Current Folder.

I search for “ABC”.

OneDrive returns files from Folder A, but also from Folder B, Folder C, etc., even though those folders are completely separate from Folder A.

I can see the actual location of these files in the search results, so the search is clearly going beyond the current folder.

Is this expected behaviour, or is it a bug?

If “Current Folder” is selected, shouldn't the search be limited to that folder and its subfolders? Is there a workaround to force OneDrive to search only within the current folder?

Thank you for your help.

Kind regards,

GALILE

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. galile 0 Reputation points
    2026-08-20T14:50:09.9766667+00:00

    Hi Jay1Tran, Thank you for your reply.

    Before raising the question in this community, i had actually gone through the 3 steps above, but unfortunately they didn't help. Regarding your questions, please see below my inputs:

    • Does the issue affect other users in your organization? Yes, we have run the test with at least 5 users.
    • Does it affect only one folder or multiple folders? Yes, it affects multiple folders.
    • Are the unrelated folders shared folders or shortcuts added through Add shortcut to My files? Nope. This folder has been used as a catalog and shared with others so that they can search for information.

    Please be advised that the "current folder" option used to work properly, but recently, everything suddently changed. Do you know if it related to a recent update ?

    Many thanks,

    Lâm

    Was this answer helpful?


  2. Jay1 Tran 100 Reputation points Independent Advisor
    2026-08-18T16:58:33.64+00:00

    Hi galile,

    Thank you for reaching out and for sharing the details.

    I tried to reproduce the issue by opening a folder in OneDrive for Business, selecting Current Folder, and performing a search. In my testing, the search results were limited to the selected folder as expected, so I was unable to reproduce the behavior you described.

    Based on your description, the issue appears to be due to stored browser cache, cookies, or session data preventing the search scope from being applied correctly. To resolve the issue, please try the following steps:

    1. Clear browser cache
    • Launch the browser, and press Ctrl + Shift + Delete to open the Clear browsing data utility. 
    • Now, select All time from the Time range dropdown menu, tick the checkboxes for Cookies and other site data and Cached images and files, then click on Clear data towards the bottom. 

    Delete browsing data X Time range Last hour > Browsing history 22 items. Includes autocompletions in the address bar. Download history None Cookies and other site data From 41 sites. Signs you out of most sites. Cached images and files Frees up less than 320 MB. Some sites may load more slowly on your next visit. Passwords None Autofill form data (includes forms and cards) This will clear your data across all your synced devices signed in to To clear browsing data from this device only, sign out first. Cancel Clear now

    1. Use an Incognito window
    • Sign in to OneDrive from the private window, open the affected folder.
    • Select Current Folder, and repeat the search.
    1. Try another browser
    • If the issue persists, please try accessing OneDrive using a different browser and repeat the search.

    To better understand the issue, please the following details:

    • Does the issue affect other users in your organization?
    • Does it affect only one folder or multiple folders?
    • Are the unrelated folders shared folders or shortcuts added through Add shortcut to My files?

    I hope this information is helpful. Please follow the steps above and let me know if it works for you. Thank you for your patience and understanding.

    I look forward to continuing the conversation.  


    If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in the forum document to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.