Create redirector links

To create a redirector link, you provide a target URL within a resource. OpenAthens encodes the URL and applies the appropriate redirector prefix for your domain. You can then copy the new link and publish it where you need it.

There are several ways to create redirector links:

Prerequisites

  1. From the main menu, select Resources > Redirector link generator. A pop-up window opens.

    Screen titled 'Redirector link generator'. At the top of the screen, advisory text displays the prefix, beginning with 'go.openathens.net', that can be manually added to a target URL to create redirector links. There are also options to 'Generate single link, by entering a target URL and pressing 'Generate link', or to 'Generate multiple links', by uploading a file and pressing 'Generate links'.
  2. Go to the section Generate single link.

  3. Type or paste your target URL in the field Enter your URL link here. The URL must include http:// or https://. Don’t include sensitive or temporary information, such as passwords or session parameters.

  4. Press the Generate link button or hit the Return key.

  5. Your redirector link appears in a text field below the button.

    Redirector link generator pop-up. A URL has been entered in the field 'Enter your URL link here'. Following the 'Generate link' button, a text field displays the generated link, consisting of the redirector prefix followed by an encoded version of the submitted URL. Beside this field is a 'Copy' button.
  6. To copy the redirector link, press the Copy button.

  7. Paste the link into a web page or store it to use later.

Failures

If link generation fails, you will get an error message.

In the field 'Enter your URL link here', the URL that's been entered has a typo in the domain name. Following submission, the field is highlighted in red, and an error message reads 'OpenAthens does not support deep-linking for this target URL.'

Link generation can fail because:

  • You omitted http:// or https:// from the URL

  • You mistyped the domain name part of the URL. Check the spelling and try again

  • The resource to which the URL belongs is not compatible with the redirector. See How the redirector works for how to identify compatible resources

If you’ve assembled a collection of links that you want to use with the redirector, you can upload them as a batch.

Create an upload file in .csv or .txt format. Paste in all of the URLs you want to upload, with each URL on a new line. For example:

https://journals.acme.org/gardening-monthly/why-are-my-plants-turning-yellow.html
https://journals.acme.org/gardening-monthly/caring-for-acid-loving-plants.html
https://journals.acme.org/popular-botany/the-story-of-evergreens.html

URLs must include http:// or https://. Ensure that they don’t include sensitive or temporary information, such as passwords or session parameters.

  1. From the main menu, select Resources > Redirector link generator. A pop-up window opens.

    Screen titled 'Redirector link generator'. At the top of the screen, advisory text displays the prefix, beginning with 'go.openathens.net', that can be manually added to a target URL to create redirector links. There are also options to 'Generate single link, by entering a target URL and pressing 'Generate link', or to 'Generate multiple links', by uploading a file and pressing 'Generate links'.
  2. Go to the section Generate multiple links.

  3. Press Choose File and select the upload file from your computer.

  4. Press the Generate links button.

  5. If the upload is successful, the pop-up window closes and you get a confirmation message at the top of your screen.

    Message displayed at the top of the resource catalogue page. The message reads 'Success - Bulk redirector link generation completed. The file has been saved to the downloads area.' The word 'downloads' is a link.
  6. To see the generated links, go to Management > Downloads or click the downloads link in the success message.

    File downloads page, showing a list of files. The files have the type 'Redirector link generation' and are listed in chronological order. The name of each file is an active link.
  7. The results of your upload are contained in a file called ‘[name of your upload file]_results.csv’. Click on the name of the file to download the file in your browser.

Results file

The downloaded file has four columns:

  • Target URL: the original URL you uploaded

  • Redirectable URL: the encoded target URL with the redirector prefix. You can copy this link into a library portal, online reading list, etc.

  • Resource Information: the publisher of the resource to which the URL belongs

  • Errors: if link generation failed, an error code that identifies the problem

Example of a results file, containing four columns - Target URL, Redirectable URL, 'Resource Information' and 'Errors' - and three rows.

Failures

If upload fails, pressing the Generate links button will give an error message.

Error message displayed beneath the 'Choose File' button. The message reads, 'Unable to read file. Please make sure that the file contains valid CSV and is not empty.'

Reasons an upload can fail include:

  • The file is not in a valid format (must be .csv or .txt)

  • The file is empty

  • Your session has expired while on the page (try logging in again)

If the file uploads successfully but the redirector fails to convert one or more URLs, the Errors column in the results file will show an error code for each failed URL.

Error codes include:

Error

Description

UNAUTHORISED

URL is not recognised as belonging to a redirectable resource

URI_ERROR

URL is incorrectly formatted (for example, lacks https:// or http://)

GENERAL_ERROR

Nonspecific error; URL is not compatible

If you or colleagues don’t have access to the Compass admin area, you can generate redirector links using our public link generator. This tool is available to anyone who belongs to a customer organisation.

If you do have admin access, we recommend creating redirector links in Compass since it is easier to check that your resources are compatible.

  1. Go to the OpenAthens Link Generator at https://go.openathens.net/generate.

    Screen titled 'OpenAthens Link Generator - Create links for your organisation that work anywhere'. It shows a search field labeled 'Find your organisation', followed by a text input field labeled 'Enter your links'.
  2. In the Find your organisation field, start typing the name of your institution and select the institution from the search results. This will give your redirector links the correct domain prefix.

    The term 'bath' has been entered in the search field. Following is a list of search results relating to the city of Bath.
  3. In the Enter your links field, either:

    1. Paste a target URL or a list of URLs. To enter multiple URLs at once, copy a list in which each URL is written on a new line and paste the list as a block.
      The pasted URL(s) are processed automatically. Your generated redirector links are output further down the page.

    2. Type a single target URL and press Return. The URL is processed automatically and your generated redirector link is output further down the page.

    If any URLs are incompatible with the redirector or otherwise invalid, you will see an error message in the output.

    Link Generator screen showing the generated output in two columns. The 'Source link' column contains the submitted URLs. The column 'OpenAthens link' contains the redirector link generated from each URL or, in one case, an error message that states 'We can't generate an OpenAthens link from this link'. Beside each generated link is a 'Copy' button. There is also a 'Copy all' button at the top of the list of links.
  4. To copy the valid redirector links for publication, press Copy all.

After you select your organisation, the address in your browser’s location bar updates to include an identifier for the organisation. For example, https://go.openathens.net/generate/citybathcoll.ac.uk/1701128.

If you go directly to this address, you’ll find that your organisation is preselected. You can bookmark the address to avoid having to search for your organisation on future visits.

Once you’re familiar with the format of redirector links, you might want to create new links by hand. You can create a link to any redirectable resource page by encoding the target URL and adding your redirector prefix.

The prefix for your domain is displayed in Resources > Redirector link generator and is the same for every link.

To encode the target URL, use an online percent encoding tool or the encode function in many spreadsheet programs.

How to encode a URL using a spreadsheet

Enter your target URL in cell A1. Enter the following formula in B1:

="https://go.openathens.net/redirector/YOUROPENATHENSDOMAIN?url="&ENCODEURL(A1)

(Unfortunately the ENCODEURL function is not available in the online or Mac versions of Microsoft Excel.)

If you create redirector links manually, ensure you test them before publication to make sure that the link is correct and that the target resource is compatible with the redirector.

Anything to watch out for?

  • Check that your target URL is correct. The link generator checks only that the URL includes the domain name of a valid resource, not that the specific page to which it points actually exists

  • Rarely, there might be more than one version of a resource in the catalogue. In that case, ensure that you generate redirector links from the version in use

  • The link generator will always return federated resources before looking at matches in the managed proxy service

  • Some service providers have proprietary link formats that you will need to replicate in the target URL. See The redirector and non-standard link syntaxes

  • If you enter DOIs or EBSCO smartlinks as target URLs, check the generated links manually

  • To use the redirector with some library management systems, you may need to configure the library management system to accept the redirector prefix in place of a proxy. See Library management systems

  • If you are unable to create redirector links to a resource that you believe should be available, try the following:

See also