developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 14 years ago

Closed 14 years ago

#126 closed enhancement (fixed)

anchor support in jResponseRedirect

Reported by: aubanel Owned by: laurentj
Priority: lowest Milestone: Jelix 1.0beta2
Component: jelix:core response Version: 1.0 beta1
Severity: trivial Keywords: anchor
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

Here is a small patch to add anchor support in redirection responses:

file jResponseRedirect.class.php

+    public $anchor ='';

     public function output(){
        if($this->hasErrors()) return false;
+        $a = $this->anchor!='' ? '#'.$this->anchor:'';
c        header ('location: '.jUrl::get($this->action, $this->params).$a);
         return true;
     }

Change History (2)

comment:1 Changed 14 years ago by laurentj

  • Milestone set to Jelix 1.0beta2
  • Status changed from new to assigned

Good idea. This will be checked in as soon as possible...

comment:2 Changed 14 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed

patch landed in the trunk.

Note: See TracTickets for help on using tickets.