Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Force javascript if page is accessed outside of js?

Featured Replies

I've run into a problem on my website.

 

On my portfolio page i'm listing my work, when an item is clicked an iframe lightbox window appears with a case study for clicked item, which is actually another page.

 

These pages are being picked up by search engines and can be accessed directly so all they are getting is the case study as the case study page is just a blank page with the information, no template is needed i dont need my whole website to load within the iframe.

 

Is there anyway to over come this? eg.. force the page to reload back to portfolio view with lightbox appearing if it is accessed outside of the lightbox iframe? or if accessed directly it shows the default template, instead of just the case study (blank) template?

 

obviously i could remove the lightbox and send the user to another page with full template but it seems overkill.

 

Hope that make sense.

You could do the redirects in your .htaccess, set them to 301 redirects now that Google has already indexed them. In the future, use the <meta name="robots" content="noindex" /> tag.

 

Post an example of the URLs.

Edited by andyl

Or alternatives would be to load the content In via another method.

 

Plus what happens to those with js disabled?

  • Author

Or alternatives would be to load the content In via another method.

 

Plus what happens to those with js disabled?

 

those with JS disabled would also see the blank case study page.. what other methods could i use?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.