? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
24 Mar 2016

Pull Request for Issue #9554.

Summary of Changes

Solves issue #9554.

Testing Instructions

  • With 3.5.0 with SEF enabled in global configuration and SEF plugin enabled
  • Add to your template index.php (protostar for instance) the following code
<p>$this->baseurl: <a href="<?php echo $this->baseurl; ?>">without dash</a></p>
<p>$this->baseurl: <a href="<?php echo $this->baseurl; ?>/">with dash</a></p>
<p>JURI::root(): <a href="<?php echo JURI::root(); ?>">without dash</a></p>
<p>JURI::root(): <a href="<?php echo JURI::root(); ?>/">with dash</a></p>
<p>JURI::root(true): <a href="<?php echo JURI::root(true); ?>">without dash</a></p>
<p>JURI::root(true): <a href="<?php echo JURI::root(true); ?>/">with dash</a></p>
<p>JURI::base(): <a href="<?php echo JURI::base(); ?>">without dash</a></p>
<p>JURI::base(): <a href="<?php echo JURI::base(); ?>/">with dash</a></p>
<p>JURI::base(true): <a href="<?php echo JURI::base(true); ?>">without dash</a></p>
<p>JURI::base(true): <a href="<?php echo JURI::base(true); ?>/">with dash</a></p>
  • Check the resulting HTML
<p>$this->baseurl: <a href="">without dash</a></p>
<p>$this->baseurl: <a href="/">with dash</a></p>
<p>JURI::root(): <a href="https://domain.tld/">without dash</a></p>
<p>JURI::root(): <a href="https://domain.tld//">with dash</a></p>
<p>JURI::root(true): <a href="">without dash</a></p>
<p>JURI::root(true): <a href="/">with dash</a></p>
<p>JURI::base(): <a href="https://domain.tld/">without dash</a></p>
<p>JURI::base(): <a href="https://domain.tld//">with dash</a></p>
<p>JURI::base(true): <a href="">without dash</a></p>
<p>JURI::base(true): <a href="/">with dash</a></p>
  • Now apply this patch
  • Check the resulting html is:
<p>$this->baseurl: <a href="/">without dash</a></p>
<p>$this->baseurl: <a href="/">with dash</a></p>
<p>JURI::root(): <a href="https://domain.tld/">without dash</a></p>
<p>JURI::root(): <a href="https://domain.tld//">with dash</a></p>
<p>JURI::root(true): <a href="/">without dash</a></p>
<p>JURI::root(true): <a href="/">with dash</a></p>
<p>JURI::base(): <a href="https://domain.tld/">without dash</a></p>
<p>JURI::base(): <a href="https://domain.tld//">with dash</a></p>
<p>JURI::base(true): <a href="/">without dash</a></p>
<p>JURI::base(true): <a href="/">with dash</a></p>
avatar andrepereiradasilva andrepereiradasilva - open - 24 Mar 2016
avatar andrepereiradasilva andrepereiradasilva - change - 24 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Mar 2016
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 24 Mar 2016

@wilsonge one more for 3.5.1

avatar JacquesR JacquesR - test_item - 24 Mar 2016 - Tested successfully
avatar JacquesR
JacquesR - comment - 24 Mar 2016

I have tested this item :white_check_mark: successfully on 177dd40


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9575.

avatar brianteeman brianteeman - change - 25 Mar 2016
Category Router / SEF
avatar SharkyKZ SharkyKZ - test_item - 25 Mar 2016 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 25 Mar 2016

I have tested this item :white_check_mark: successfully on 177dd40


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9575.

avatar wilsonge wilsonge - close - 25 Mar 2016
avatar wilsonge wilsonge - merge - 25 Mar 2016
avatar wilsonge wilsonge - reference | 33ff2df - 25 Mar 16
avatar wilsonge wilsonge - merge - 25 Mar 2016
avatar wilsonge wilsonge - change - 25 Mar 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-03-25 14:17:39
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 Mar 2016
avatar wilsonge wilsonge - change - 25 Mar 2016
Milestone Added:
avatar andrepereiradasilva andrepereiradasilva - head_ref_deleted - 25 Mar 2016

Add a Comment

Login with GitHub to post a comment