Skip to main content
ExLibris

Knowledge Assistant

BETA
Back
Primo

 

Ex Libris Knowledge Center
  1. Search site
    Go back to previous article
    1. Sign in
      • Sign in
      • Forgot password
  1. Home
  2. Primo
  3. Knowledge Articles
  4. How to redirect old domain name full length URL (including view)?

How to redirect old domain name full length URL (including view)?

  1. Last updated
  2. Save as PDF
  3. Share
    1. Share
    2. Tweet
    3. Share
  1. Question
  2. Answer
  • Product: Primo

 

Question

How to redirect old domain name full length URL (including view)?

Answer

Inorder to redirect the FE url that starts with the old domain (https://Primo_Old_domain.com) to new domain (https://Primo_New_domain.com/primo-e...arch?vid=View2)

Primo Home > Advanced Configuration > All Mapping Tables
Sub System: FRONTEND
Table Name:  Front-End Redirect Definitions
with this table, DNS: Primo_Old_domain.com will be successfully redirected to https://Primo_New_domain.com/primo-e...arch?vid=View2

But it is not the same with the old domain name full length URL's (which includes view) and are not getting redirected to the new domain.

For Example: https://Primo_Old_domain.com/primo-e...arch?vid=View1 is bookmarked by a student and this link cannot be redirected to the new domain using the Front-End Redirect Definitions Mapping table.

In such a case, this old domain name full length URL (including view) can be redirected by using custom.JS file from the customer end.

Please add a condition to your Custom.JS file checking something like this: "if the url contains the old domain name --> then --> window.location.replace("redirection link");"
For example: Check this JS script matching this requirement. Change it according to your requirement.
if(window.location.href.indexOf("Primo_Old_domain.com") > -1) {
window.location.replace("/primo-explore/search?sortby=rank&vid=UCL_VU2&lang=en_US");
} //This is just an example (may be not the exact working script). You need to script it accordingly.

Unfortunately providing CSS and or JS/AngularJS code for Primo New UI customization is out of support's scope.

 

 


  • Article last edited: 06-Jun-2020
View article in the Exlibris Knowledge Center
  1. Back to top
    • How to recognize if a record is a deduplicated record in Primo VE
    • How to reflect the collection name change under Collection Filter of Primo after changing in Alma?
  • Was this article helpful?

Recommended articles

  1. Article type
    How-To
    Community Content Type
    How To
    Content Type
    Knowledge Article
    Language
    English
    Product
    Primo
  2. Tags
    This page has no tags.
  1. © Copyright 2025 Ex Libris Knowledge Center
  2. Powered by CXone Expert ®
  • Term of Use
  • Privacy Policy
  • Contact Us
2025 Ex Libris. All rights reserved