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

Abuot FRAGMENT #298

Open
soyleung opened this issue Apr 9, 2020 · 3 comments
Open

Abuot FRAGMENT #298

soyleung opened this issue Apr 9, 2020 · 3 comments

Comments

@soyleung
Copy link

soyleung commented Apr 9, 2020

I see FRAGMENT is work in $_SERVER['REQUEST_URI'],
$_SERVER['REQUEST_URI'] will no return FRAGMENT.
My project is work on nginx, I don't know other!
So,i think! FRAGMENT is unnecessary,more than what is due!!!

@KOTRET
Copy link
Contributor

KOTRET commented Apr 20, 2020

Yes, the fragment is not sent to the server by the clients (although they provide access to the fragment internally, see FF, Chrome).
PHP's parse_url supports this, but as it is not part of $_SERVER['REQUEST_URI']), there cannot be any FRAGMENT in the hive.

@ikkez
Copy link
Member

ikkez commented Apr 20, 2020

I'm not quite sure why it's there. Perhaps for unit tests or for rerouting to URLs with fragment included?!

@KOTRET
Copy link
Contributor

KOTRET commented Apr 20, 2020

In these cases the REQUEST_URI must have been set to something specific, that imho would never apply to any real-world-scenario as the fragment is not sent by browsers and is never part of the REQUEST_URI. So this does not make any sense 😵

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants