DBCDK / biblo-admin

Admin application for biblo
0 stars 3 forks source link

Admin content should link to the community site. #102

Closed kallehauge closed 8 years ago

kallehauge commented 8 years ago

The ticket was to create a link from the content overview list to the community site. I have chosen to go down the path of forwarding all "node/{nid}" requests to the community site since we don't handle any kind of front-end rendering and the existence of a "half view" of the node could cause confusion for some editors/librarians. This solves the original issue by redirecting the already existing title-link to "/awesome-content" to "http://biblo.dk/awesome-content". (OBS: This does not effect REST requests).

So this PR does the following:

kasperg commented 8 years ago

Does this work with #79 where they have requested that external urls open in a new window?

kallehauge commented 8 years ago

Like we talked about on the phone: Server-side redirects cannot be opened in new windows. The way I chose to work around this is to add a "target" property to the title-link on the content view. This will open the node/{nid} link in a new window and then the previous code will do its magic :smile:

kasperg commented 8 years ago

Great