seems that even when setting to alias, i'm still getting print/21 (uses NID) - minor, but worth pointing out

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Have you cleared caches? And where exactly are you still getting the print/21 link? In a block, or the content links area?

zilla’s picture

it appears in the path at the actual print page - so whether i click 'printer friendly' or 'as pdf' both will show NID in the URL bar when viewing the printable page - but is that by design? i've configured both to use the alias in config

jcnventura’s picture

So, the link to the print page created by the module is print/alias, but something does a redirect to print/nid?

Not really the fault of the module in that case, but I'm still not sure that's the case. If you confirm the above, the problem is certainly in another part of your server setup. I use the 'Global Redirect' module to ensure that in my case when I go to: $base_url/alias_for_node_21 or $base_url/node/21, I get served the page at $base_url/alias_for_node_21.

However, the Global Redirect module does not catch the print page, so browsing $base_url/print/21 will not be redirected to $base_url/print/alias_for_node_21. If in your case, you're actually redirected from one to the other (even on manual input), you need to find out what's causing that.

zilla’s picture

thanks - it's honestly not a huge deal at all, particularly since the actual printing is just fine.

the links are pointing to print/NID (visible on mouseover), so it ignores the alias setting in config

jcnventura’s picture

Have you cleared caches? And where exactly are you still getting the print/21 link? In a block, or the content links area?

zilla’s picture

it's appearing in standard node page links when placed in upper corner as well as within a view when placed as field on a view - the mouseover simply shows print/NID instead of title of node...caches are cleared.

jcnventura’s picture

Thanks for clearing that out.. Unfortunately, as you cleared caches, and you're using the module link building mechanism, I fail to see why it's not respecting the configuration. I'm pretty sure it must either be a bug or something in your config.

Either way, and as it's working for me, I'd need you to debug your site to understand why... The code that should return the print/alias is in the print_ui_insert_link in print_ui/print_ui.module.

jcnventura’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further info in a long time. Closing the issue.