?
Related to # 14163
avatar AndySDH
AndySDH
21 Feb 2017

Steps to reproduce the issue

  • Set an "Offline Image" in Global Configuration
  • Set the site Offline
  • I assume SEF URLs must be on for this to happen
  • Try to visit the website by accessing a Menu Link or a Category Link (anything but the root homepage)

Expected result

  • The offline image should be displayed with "/images/path/name_of_the_image.jpg" with leading slash so that it always refers to the root

Actual result

  • The offline image is displayed without the leading slash ("images/path/name_of_the_image.jpg") so the path turns into "link_path/images/name_of_the_image.jpg" resulting in a broken link.
avatar AndySDH AndySDH - open - 21 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 21 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Feb 2017
avatar PhilETaylor
PhilETaylor - comment - 4 Mar 2017

Which template are you using to replicate this with ?

avatar AndySDH
AndySDH - comment - 5 Mar 2017

To me it also happened with the default protostar template.

avatar nileshprasad137
nileshprasad137 - comment - 8 Mar 2017

I am not able to reproduce this issue using "default protostar" template or "Beez3" template on Joomla 3.6.5.
capture
capture2

.

avatar brianteeman
brianteeman - comment - 13 Mar 2017

I cannot confirm this either

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category Administration
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Status New Closed - Unconfirmed Report
Closed_Date 0000-00-00 00:00:00 2017-04-04 18:05:40
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 4 Apr 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 4 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

closed as unconfirmed Report. @AndySDH please reopen if closed too early.


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

avatar AndySDH
AndySDH - comment - 5 Apr 2017

Hello,

I tested this further. I noticed this happens with sh404sef installed. Apparently it's because, with sh404sef installed, the browser path is kept in the URL bar when the site is offline, while with default Joomla it redirects the browser path to the root.
Since the path is redirected to the root, the image is displayed correctly in default Joomla, because we're always in the root.

However, it is still technically wrong to have the image code without the leading slash. It's more correct to directly specify to start from the root. Adding the leading slash fixes the problem with sh404sef enabled and doesn't harm anything for the default Joomla.

Now, of course, everyone have their own template and can fix it in their own template, which I did. But just for perfectionism, should/could be added to the default Joomla template behavior too.

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status Closed - Unconfirmed Report Discussion
Closed_Date 2017-04-04 18:05:40
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - reopen - 5 Apr 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Apr 2017

reopened for Discussion.


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Rel_Number 0 14163
Relation Type Related to
avatar brianteeman
brianteeman - comment - 21 May 2017

I am closing this as the core is working correctly and it is an extension that is breaking the behaviour. If you really want to see the core being changed then please submit a pull request with the changes for consideration

avatar brianteeman brianteeman - change - 21 May 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-05-21 14:47:17
Closed_By brianteeman
avatar brianteeman brianteeman - close - 21 May 2017

Add a Comment

Login with GitHub to post a comment