Skip to main content
Drupal Documentation for SCLS

Main navigation

  • Home
  • How-To Info for Library Staff
  • Drupal 10
  • Help

Breadcrumb

  1. Home
  2. How-To Info for Library Staff
  3. Creating and Editing Website Content

Eliminate problem link and image references

If you are migrating from an old site to a new site, it is strongly recommended that you eliminate hard-coded references to certain text in URLs prior to go-live:

  • References to “www.example.org” and “beta.example.org” are likely to break with the URL changes that occur when the new site goes live.
  • References to “#overlay-context=…” are less likely to cause problems, but should still be eliminated for the sake of keeping unnecessary site-building information out of URLs.

Fixing problem link and image references

  1. Make sure all the referenced pages/documents/images are stored as part of your Drupal site.
    1. Create missing pages on the new site.
    2. Upload images and documents referenced by your site with Drupal's file browser.
  2. Change links to relative URLs for the pages you created and/or documents you uploaded.
    1. If you see "#overlay-context=..." in a link, delete the portion of the URL starting with "#."
  3. Change image URLs to use images saved in Drupal's file browser and shorten the URLs.

Where would problem link and image references potentially come from?

  • “www.example.org”: copying and pasting link and image references embedded in page content without also migrating the referenced pages/documents/images.
  • “beta.example.org”: copying and pasting full page URLs from the address bar while a site is being migrated. Drupal's file browser also inserts a reference to the main site URL in references to images and documents, so images and documents added while "beta.example.org" is the main site URL will also contain this reference unless they are shortened.
  • “#overlay-context=…” copying and pasting full link and image references from the address bar while you are logged in to Drupal and using the administrative overlay.

Book traversal links for Eliminate problem link and image references

  • Display Differences Between the Editing Form and Published Content
  • Up
  • Embed Codes
  • Managing Accounts for Your Drupal Site
  • Images
  • Creating and Editing Website Content
    • Anchor Links ("Bookmarks")
    • Disable/Enable Rich-Text
    • Display Differences Between the Editing Form and Published Content
    • Eliminate problem link and image references
    • Embed Codes
    • Forcing Links to Open in a New Window or Tab
    • Overriding Sitewide Theme Styling
    • Accordions (show/hide sections)
    • Adding menu links
    • Glorious Guide to Keyboard Shortcuts
  • Uploading Files to Media
  • Changing Menu Links
  • Creating Photo Albums & Galleries
  • Folders, Directories, and File Structure
  • Blocks
  • Paths and URL Aliases
  • Configuring Site Information
  • Developer Permissions
  • Homepage Variations
  • Events/Programs with repeating dates
  • Registration for Events/Programs
  • What is Cron?
  • Avoid mixed content warnings (HTTPS/HTTP)
  • LINKcat Title List (Experimental)
  • Performance settings: Cache pages for anonymous users
  • Slick Carousel
  • Uploading Files with IMCE

Tags

accordion (1)
account (2)
anchors (1)
blocks (0)
cache (1)
carousel (2)
CKEditor (5)
configuration (1)
content types (1)
CSS (1)
disable rich-text (1)
Drupal 10 (15)
Drupal 9 (16)
email (2)
embed code (1)
Entity Registration (5)
events (6)
file browser (1)
files (4)
files media (1)
folders (1)
formatting (2)
front page (3)
Google Analytics (1)
headings (2)
HTML (1)
iframe (2)
images (4)
imce (1)
Layout Builder (3)
link a pdf (1)
links (5)
login (1)
media (2)
menus (3)
nodes (1)
openid (1)
paste as plain text (1)
paths (4)
performance (1)
photo albums (1)
photo galleries (1)
redirects (3)
registration (5)
remove format (1)
repeat dates (2)
reports (1)
revisions (1)
sidebars (0)
site name (1)
slogan (1)
source (1)
sticky (2)
text formats (1)
themes (1)
toolbar (2)
URL aliases (4)
Webform (2)
widget (1)