Atozed Forums
Maintain url with handler - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Maintain url with handler (/thread-2501.html)



Maintain url with handler - Anto90 - 09-08-2021

Hi at all,
I have this situation: I have a link like this (in a tag) http://127.0.0.1:8888/Curriculum/KeyNumber-Surname-Name.html?CurriculumKey=KeyNumber&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/KeyNumber-Surname-Name.html?CurriculumKey=KeyNumber&DaHome=1 the form is displayed but the link in the address bar change like this: http://127.0.0.1:8888/hkn6AtmCEulz039mSCQmv695zK/Curriculum/ 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/KeyNumber-Surname-Name.html?CurriculumKey=KeyNumber&DaHome=1) for search engines?

Thank you

Andrea
P.s : i use intraweb 15.2.31


RE: Maintain url with handler - Alexandre Machado - 09-10-2021

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.


RE: Maintain url with handler - Alexandre Machado - 09-13-2021

Stay tuned for the new update 15.2.37. It will contain a new property that allows you to do exactly that.


RE: Maintain url with handler - Anto90 - 09-13-2021

Thank you Alexandre.


RE: Maintain url with handler - Alexandre Machado - 09-13-2021

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.