Project

General

Profile

Actions

Bug #97252

closed

TYPO3 Request-Object should reflect the whole original request (including url-hash)

Added by Gabriel Kaufmann / Typoworx NewMedia over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-03-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I noticed the incoming Web-Request in an extbase-controller doesn't contain the url-hash like (https://foo-bar.com/my-action/?tx_foobar_pi1[action]=submit#jump-mark).

This would sometimes be useful and the f:form also has an explicit attribute to set the section which works great.

But imagine this situation:
A site needs to submit using f:form to a controller:submit action to do something with the submit-data and then we want to redirect to a result-page (to get rid of the POST-Data and possible user-caused "re-post" by refreshing browser-page).

It would be great being able to get an optional url-hash like '#jump-here' from the web-request object 'requestUri' as it should reflect our (complete) original request. But it doesn't have this property - whereas the browser-URL has it.

Actions #1

Updated by Oliver Bartsch over 2 years ago

Hi, I think this won't be possible. The fragment is never sent to the server and can therefore never be reflected in the Request Object, see e.g. https://stackoverflow.com/questions/2317508/get-fragment-value-after-hash-from-a-url/2317518#answer-2317523.

Actions #2

Updated by Oliver Bartsch over 2 years ago

  • Status changed from New to Closed

Hi, I did some further research and communication and my initial though has been confirmed. Therefore I'll close this issue now. If you think this is the wrong decision or found another solution, please either contact me directly or create a new issue with reference to this one.

Actions #3

Updated by Gabriel Kaufmann / Typoworx NewMedia over 2 years ago

Thanks I'm fine with that. Actually I thought it's possible but good to know it isn't. Well that makes clear why it isn't in the requestUri at all :-)

Actions

Also available in: Atom PDF