**Firefox opening in a different space on macOS**

hi,
i have Sonoma 14.1 macos
I have tried using the following command to open Firefox in the current space/desktop, but it does not work well:
I have tried on the terminal
and I have tried also using "Execute Shell Script" in keyboard maestro

When I run those command, it open new Firefox window in a new space,
not in the current space am in
please I want that Firefox will always open new window in the current space i am in .

those all the commends i try:

open -n -a Firefox
open -a Firefox -n -s
open -a Firefox -n && switchto -a Firefox
tell application "Firefox" to activate
tell application "System Events" to tell process "Finder" to activate
tell application "System Events" to tell process "Firefox" to activate

this command work grate just like 3 weeks ago
maybe when i update the macOS (i don't remember exactly)
and i don't have time machine:

open -n -a Firefox

Thank you.

This may be more basic than your requirements, but have you tried right-clicking the dock icon and trying the different desktop options?

I don't use Firefox, but here's are the Brave Browser options: