Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5955: Search Engine Friendly URLs is not friendly to TOS article #5968

Merged
merged 1 commit into from
Sep 8, 2015
Merged

Fix #5955: Search Engine Friendly URLs is not friendly to TOS article #5968

merged 1 commit into from
Sep 8, 2015

Conversation

joomdonation
Copy link
Contributor

Please see #5955 to understand the issue.

To test this PR:

  1. Enable "User - Profile" plugin and assign an article with TOS
  2. Set "Search Engine Friendly URLs" to "Yes" at global configuration
  3. Check and make sure When user wants create a account and click "Terms of Service:" link, it will show
    a modal box with TOS article.

}

$tosarticle = $this->element['article'] > 0 ? (int) $this->element['article'] : 0;

$link = '';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joomdonation are you sure by removing this line?

How we handle it ($link) if no $tosarticle is set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. That line of code is not used at all. In that block of code, if the article is not selected, it will go to the else block:

$link = $text;

Infact, when no article is selected, this tos field will be removed from the form https://github.com/joomla/joomla-cms/blob/staging/plugins/user/profile/profile.php#L265

So the code is correct.

@coolcat-creations
Copy link
Contributor

Tested successfully with SEF on and with URL rewriting on.


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

@zero-24
Copy link
Contributor

zero-24 commented Jul 31, 2015

RTC based on the lastes tests Thanks.


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 31, 2015
@zero-24 zero-24 modified the milestone: Joomla! 3.4.4 Aug 25, 2015
@Kubik-Rubik Kubik-Rubik modified the milestones: Joomla! 3.4.5, Joomla! 3.4.4 Sep 3, 2015
roland-d added a commit that referenced this pull request Sep 8, 2015
Fix #5955: Search Engine Friendly URLs is not friendly to TOS article
@roland-d roland-d merged commit 20ed1ac into joomla:staging Sep 8, 2015
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 8, 2015
@zero-24 zero-24 modified the milestones: Joomla! 3.4.6, Joomla! 3.5.0 Oct 28, 2015
@joomdonation joomdonation deleted the patch-1 branch December 19, 2015 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants