URL for local server not clickable in terminal

Hi all,
Running hugo server gives this message:

But the link is not clickable and neither 127.0.0.1:1313 works, nor does //localhost:1313/ .

What am I missing? Thanks for any reply!

Have you maybe set your baseURL to “/”?

If so, that is incorrect. Set it to your actual URL. Something like:

baseURL: https://www.example.org/

1 Like

You are supposed to copy-paste the link, not click on it from your command line.

1 Like

Depends on the terminal you are using. In the Terminal app on macOS you can command + dubbel click links, or right click and pick “Open link” from the menu.

Interesting…Git Bash has no such option.

I think it’s more a function of the terminal app, not the shell. iTerm2 running zsh on macOS offers them same, though a bit more convoluted as it’s using a context menu (or maybe I haven’t seen the shortcut yet).

The shell itself probably doesn’t know how to tell a browser (or even which browser) to open an URL.

Hi,
Any news on this ?
Thanks

The question has already been answered:

  1. The baseURL in your site config must comply with the documented format:
    https://gohugo.io/getting-started/configuration/#baseurl

  2. The “clickability” depends on your terminal.

Indeed, that property was not set. But since the property is the prod URL, how come it affects the dev URL ?

Thanks

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.