Atozed Forums

Full Version: Maintain url with handler
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi at all,
I have this situation: I have a link like this (in a tag) http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1
I have registered an handler in this way
with THandlers.Add ('/Curriculum/', '', TContentForm.Create (TBSCurriculumCandidatoSingoloForm)) do
begin
  CanStartSession: = True;
  RequiresSessionStart: = False;
end;
so the /Curriculum/ display TBSCurriculumCandidatoSingoloForm form.
When clicked link http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1 the form is displayed but the link in the address bar change like this: http://127.0.0.1:8888/hkn6AtmCEulz039mSC...urriculum/ this part KeyNumber-Surname-Name.html?CurriculumKey=KeyNumber&DaHome = 1 is deleted.
Is it possible to mantain all url like original (http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1) for search engines?

Thank you

Andrea
P.s : i use intraweb 15.2.31
It is possible if you create your own TContentForm descendant. Other than that we are implementing new things in ContentHandlers area that will make it possible via properties.
Stay tuned for the new update 15.2.37. It will contain a new property that allows you to do exactly that.
Thank you Alexandre.
Try IW 15.2.37 recently released. You must create your content handler and set the property RedirectToPath to FALSE. It will then behave as you intend.

Please let me know how it goes.