Skip to content

Commit

Permalink
fix: use the current hostname for slugs, not always data.nhm.ac.uk
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdh committed Sep 19, 2024
1 parent 9f09a40 commit 72aeeb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {
...mapState('results', ['slug', 'slugReserved', 'page']),
...mapState('results/display', ['view']),
shareUrl() {
let Url = `data.nhm.ac.uk/search/${this.slug}`;
let Url = `${window.location.hostname}/search/${this.slug}`;
let params = [];
if (this.includeShareView) {
Expand Down

0 comments on commit 72aeeb6

Please sign in to comment.